-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheessi_example.py
More file actions
281 lines (278 loc) · 11.9 KB
/
eessi_example.py
File metadata and controls
281 lines (278 loc) · 11.9 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
# Define the configuration as a dictionary
# gcc-runtime and glibc dependencies are added by spood automatically
example_dict = {
"software_target": "haswell", # EESSI software architecture
"specs": [
# COMPAT LAYER EXTERNAL PACKAGES ARE DETECTED AUTOMATICALLY BY SPACK
# SOFTWARE PACKAGES
{ # EB GCC COMPILER
"name": "gcc",
"version": "13.2.0", # EBVERSIONGCC
"variants": "languages:='c,c++,fortran'",
"explicit": True,
"external_path": "/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/intel/haswell/software/GCCcore/13.2.0", # EBROOTGCCCORE or EBROOTGCC
# "external_modules": ["/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/intel/haswell/modules/all/GCC/13.2.0.lua"],
"extra_attributes": {
"compilers": {
"c": "/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/intel/haswell/software/GCCcore/13.2.0/bin/gcc",
"cxx": "/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/intel/haswell/software/GCCcore/13.2.0/bin/g++",
"fortran": "/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/intel/haswell/software/GCCcore/13.2.0/bin/gfortran",
}
},
"dependencies": []
},
{
"name": "gmake",
"version": "4.4.1", # EBVERSIONMAKE
"variants": "",
"explicit": True,
"external_path": "/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/intel/haswell/software/make/4.4.1-GCCcore-13.2.0", # EBROOTMAKE
# "external_modules": ["/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/intel/haswell/modules/all/make/4.4.1-GCCcore-13.2.0.lua"],
"dependencies": [
{
"name": "gcc@13.2.0",
"depflags": ["BUILD"],
"virtuals": ["c"],
},
],
},
{
"name": "numactl",
"version": "2.0.16", # EBVERSIONNUMACTL
"variants": "",
"explicit": True,
"external_path": "/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/intel/haswell/software/numactl/2.0.16-GCCcore-13.2.0",
"dependencies": [
{
"name": "gcc@13.2.0",
"depflags": ["BUILD"],
"virtuals": ["c"],
},
],
},
{
"name": "libxml2",
"version": "2.11.5", # EBVERSIONLIBXML2
"variants": "",
"explicit": True,
"external_path": "/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/intel/haswell/software/libxml2/2.11.5-GCCcore-13.2.0",
"dependencies": [
{
"name": "gcc@13.2.0",
"depflags": ["BUILD"],
"virtuals": ["c", "cxx"],
},
{
"name": "zlib@1.2.13",
"depflags": ["BUILD", "LINK"],
},
{
# "name": "xz@5.4.4",
"name": "xz@5.4.3", # version available in compat layer
"depflags": ["BUILD", "LINK"],
},
# libiconv: not for EasyBuild
],
},
{
"name": "libpciaccess",
"version": "0.17", # EBVERSIONLIBPCIACCESS
"variants": "",
"explicit": True,
"external_path": "/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/intel/haswell/software/libpciaccess/0.17-GCCcore-13.2.0",
"dependencies": [
{
"name": "gcc@13.2.0",
"depflags": ["BUILD"],
"virtuals": ["c"],
},
],
},
{
"name": "hwloc",
"version": "2.9.2", # EBVERSIONHWLOC
"variants": "",
"explicit": True,
"external_path": "/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/intel/haswell/software/hwloc/2.9.2-GCCcore-13.2.0", # EBROOTHWLOC
"dependencies": [
{
"name": "gcc@13.2.0",
"depflags": ["BUILD"],
"virtuals": ["c", "cxx"],
},
{
"name": "libxml2@2.11.5%gcc@13.2.0",
"depflags": ["BUILD", "LINK"],
},
{
"name": "libpciaccess@0.17%gcc@13.2.0",
"depflags": ["BUILD", "LINK"],
},
{
"name": "ncurses@6.4.20230401", # filtered dependency in EESSI
"depflags": ["BUILD", "LINK"],
},
{
"name": "numactl@2.0.16%gcc@13.2.0", # not for Spack
"depflags": ["BUILD", "LINK"],
},
],
},
# {
# "name": "git",
# "version": "2.42.0", # EBVERSIONGIT
# "variants": "",
# "explicit": True,
# "external_path": "/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/intel/haswell/software/git/2.42.0-GCCcore-13.2.0", # EBROOTGIT
# "dependencies": [
# {
# "name": "gcc@13.2.0",
# "depflags": ["BUILD"],
# "virtuals": ["c"],
# },
# {
# "name": "gcc-runtime@13.2.0",
# "depflags": ["LINK"],
# },
# {
# "name": "glibc@2.36",
# "depflags": ["LINK"],
# "virtuals": ["libc"],
# },
# {
# "name": "curl@8.3.0",
# "depflags": ["BUILD", "LINK"],
# },
# {
# "name": "openssl@1.1.1w",
# "depflags": ["BUILD", "LINK"],
# },
# # missing: gettext, Perl, expat
# ],
# },
{
"name": "openblas",
"version": "0.3.24", # EBVERSIONOPENBLAS
"variants": "~ilp64 threads=openmp", # not detectable by Spack
"explicit": True,
"external_path": "/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/intel/haswell/software/OpenBLAS/0.3.24-GCC-13.2.0", # EBROOTOPENBLAS
# "external_modules": ["/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/intel/haswell/modules/all/OpenBLAS/0.3.24-GCC-13.2.0.lua"],
"dependencies": [
{
"name": "gcc@13.2.0",
"depflags": ["BUILD"],
"virtuals": ["c", "cxx", "fortran"],
},
],
},
{
"name": "fftw",
"version": "3.3.10", # EBVERSIONFFTW
"variants": "~mpi+openmp+shared precision=float,double,long_double,quad", # not detectable by Spack # precision: EB builds all of them if possible - to be checked (there are exceptions, like when using MPI or on ARM)
"explicit": True,
"external_path": "/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/intel/haswell/software/FFTW/3.3.10-GCC-13.2.0", # EBROOTFFTW
# "external_modules": ["/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/intel/haswell/modules/all/FFTW/3.3.10-GCC-13.2.0.lua"],
"dependencies": [
{
"name": "gcc@13.2.0",
"depflags": ["BUILD"],
"virtuals": ["c", "fortran"],
},
],
},
# {
# "name": "fftw",
# "version": "3.3.10", # EBVERSIONFFTWMPI
# "variants": "+mpi~openmp+shared precision=float,double,long_double", # not detectable by Spack # precision: EB builds all of them if possible - to be checked (there are exceptions, like when using MPI or on ARM)
# "explicit": True,
# "external_path": "/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/intel/haswell/software/FFTW.MPI/3.3.10-gompi-2023b", # EBROOTFFTWMPI
# # "external_modules": ["/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/intel/haswell/modules/all/FFTW.MPI/3.3.10-gompi-2023b.lua"],
# "dependencies": [
# {
# "name": "gcc@13.2.0",
# "depflags": ["BUILD"],
# "virtuals": ["c", "fortran"],
# },
# ...
# ],
# },
{
"name": "curl",
"version": "8.3.0", # EBVERSIONCURL
"variants": "+nghttp2",
"external_path": "/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/intel/haswell/software/cURL/8.3.0-GCCcore-13.2.0", # EBROOTCURL
"dependencies": [
{
"name": "gcc@13.2.0",
"depflags": ["BUILD"],
"virtuals": ["c", "cxx"],
},
{
"name": "zlib@1.2.13",
"depflags": ["LINK"],
},
{
"name": "openssl@1.1.1w",
"depflags": ["BUILD", "LINK"],
},
# nghttp2 : not a dependency in EB
],
},
{
"name": "libarchive",
"version": "3.7.2", # EBVERSIONLIBARCHIVE
"variants": "",
"external_path": "/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/intel/haswell/software/libarchive/3.7.2-GCCcore-13.2.0", # EBROOTLIBARCHIVE
"dependencies": [
{
"name": "gcc@13.2.0",
"depflags": ["BUILD"],
"virtuals": ["c", "cxx"],
},
],
},
{
"name": "cmake",
"version": "3.31.8", # EBVERSIONCMAKE
"variants": "",
"explicit": True,
"external_path": "/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/intel/haswell/software/CMake/3.27.6-GCCcore-13.2.0", # EBROOTCMAKE
"dependencies": [
{
"name": "gcc@13.2.0",
"depflags": ["BUILD"],
"virtuals": ["c", "cxx"],
},
# {
# "name": "gmake@4.4.1", # not for EasyBuild !
# "depflags": ["BUILD", "RUN"],
# },
{
"name": "curl@8.3.0%gcc@13.2.0",
"depflags": ["BUILD", "LINK"],
},
{ # filtered dependency in EESSI
"name": "ncurses@6.4.20230401",
"depflags": ["BUILD", "LINK"],
},
{ # filtered dependency in EESSI
"name": "zlib@1.2.13", # in Spack it depends on the virtual zlib-api (zlib or zlib-ng)
"depflags": ["BUILD", "LINK"],
},
# libarchive, bzip2, openssl 3 --> not dependencies in cmake Spack package
{
"name": "libarchive@3.7.2%gcc@13.2.0", # in Spack it is not needed if +ownlib
"depflags": ["BUILD", "LINK"],
},
{ # filtered dependency in EESSI
"name": "bzip2@1.0.8",
"depflags": ["LINK"],
},
{ # EESSI module points to compat layer
"name": "openssl@1.1.1w",
"depflags": ["BUILD", "LINK"],
},
],
},
]
}