-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpixi.toml
More file actions
91 lines (82 loc) · 1.85 KB
/
pixi.toml
File metadata and controls
91 lines (82 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
[workspace]
authors = ["Neko authors"]
channels = ["conda-forge"]
name = "neko"
platforms = ["osx-arm64", "osx-64", "linux-64"]
version = "0.9.0"
[activation.env]
PREFIX = "$PWD/install"
PKG_CONFIG_PATH = "$PREFIX/lib/pkgconfig:$CONDA_PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH"
PATH = "$PREFIX/bin:$PATH"
LD_LIBRARY_PATH = "$PREFIX/lib:$LD_LIBRARY_PATH"
LIBRARY_PATH = "$PREFIX/lib:$LIBRARY_PATH"
CPATH = "$PREFIX/include:$CPATH"
[tasks]
download-deps = { cmd = [
"sh",
"-c",
'''
mkdir -p $PREFIX/deps && cd $PREFIX/deps
rm -rf *
git clone https://github.com/Nek5000/gslib.git gslib
wget https://github.com/HDFGroup/hdf5/archive/refs/tags/hdf5_1.14.6.tar.gz
'''
]}
build-gslib = { cmd = [
"sh",
"-c",
'''
cd $PREFIX/deps/gslib
make CC=mpicc DESTDIR=$PREFIX
make install
'''
]}
build-hdf5 = { cmd = [
"bash", "-c",
'''
cd $PREFIX/deps
tar xvf hdf5_1.14.6.tar.gz
cd hdf5-hdf5_1.14.6
cmake -B build -S . -DCMAKE_INSTALL_PREFIX=$PREFIX -DCMAKE_C_COMPILER=mpicc -DCMAKE_CXX_COMPILER=mpicxx -DCMAKE_Fortran_COMPILER=mpifort -DHDF5_ENABLE_PARALLEL=ON -DHDF5_BUILD_FORTRAN=ON -DCMAKE_BUILD_TYPE=Release
cmake --build build/ --parallel
cmake --install build/
'''
]}
build-neko-cpu = { cmd = [
"bash",
"-c",
'''
set -e
./regen.sh
./configure FCFLAGS="-O3" --prefix=$PREFIX --with-hdf5=$PREFIX --with-parmetis=$PREFIX --with-gslib=$PREFIX
grep hdf5 config.log
grep parmetis config.log
grep gslib config.log
make -j install
'''
]}
install-neko-cpu = { cmd = [
"bash",
"-c",
'''
set -e
pixi run download-deps
pixi run build-gslib
pixi run build-hdf5
pixi run build-neko-cpu
'''
]}
[dependencies]
gfortran = "14.*"
openmpi = "5.*"
cmake = "3.*"
json-fortran = "*"
parmetis = "4.0.3.*"
metis = "5.1.0.*"
libtool = "*"
autoconf = "*"
automake = "*"
pkg-config = "*"
wget = "*"
blas = "*"
lapack = "*"