Skip to content

Commit 105df5c

Browse files
committed
Adding separate spack file for ubuntu 20
1 parent fc10e69 commit 105df5c

File tree

2 files changed

+164
-1
lines changed

2 files changed

+164
-1
lines changed

docker/tpl-ubuntu-clang-cuda.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ RUN --mount=src=.,dst=$SRC_DIR,readwrite cd ${SRC_DIR} && \
6363
mkdir -p ${GEOSX_TPL_DIR} && \
6464
./scripts/uberenv/uberenv.py \
6565
--spec "+cuda~uncrustify~openmp~pygeosx cuda_arch=70 %clang-10 ^[email protected]+allow-unsupported-compilers ^caliper~gotcha~sampler~libunwind~libdw~papi" \
66-
--spack-env-file=${SRC_DIR}/docker/spack.yaml \
66+
--spack-env-file=${SRC_DIR}/docker/ubuntu20-spack.yaml \
6767
--project-json=.uberenv_config.json \
6868
--prefix ${GEOSX_TPL_DIR} \
6969
-k && \

docker/ubuntu20-spack.yaml

Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
spack:
2+
config:
3+
install_tree:
4+
root: $spack/..
5+
projections:
6+
all: '{compiler.name}-{compiler.version}/{name}-{version}-{hash}'
7+
misc_cache: $spack/../misc_cache
8+
test_stage: $spack/../test_stage
9+
build_stage::
10+
- $spack/../build_stage
11+
12+
# Regular TPLs do not need views
13+
view: false
14+
15+
# Include shared variants and versions
16+
include:
17+
- ../defaults.yaml
18+
- ../versions.yaml
19+
20+
# Ubuntu 20.04 clang/cuda image only has clang/llvm 10.x available.
21+
# Keep this environment llvm10-only to avoid concretizer conflicts with llvm@15.
22+
toolchains:
23+
clang-10:
24+
- spec: '%[virtuals=c][email protected]+clang~flang~lld~lldb'
25+
when: '%c'
26+
- spec: '%[virtuals=cxx][email protected]+clang~flang~lld~lldb'
27+
when: '%cxx'
28+
- spec: '%[virtuals=fortran][email protected]'
29+
when: '%fortran'
30+
- spec: '%openmpi'
31+
when: '%mpi'
32+
33+
packages:
34+
all:
35+
target: [x86_64]
36+
37+
mpi:
38+
require:
39+
- openmpi
40+
41+
blas:
42+
require:
43+
- "netlib-lapack"
44+
lapack:
45+
require:
46+
- "netlib-lapack"
47+
48+
llvm:
49+
externals:
50+
- spec: [email protected]+clang~flang~lld~lldb
51+
prefix: /usr
52+
extra_attributes:
53+
compilers:
54+
c: /usr/bin/clang
55+
cxx: /usr/bin/clang++
56+
57+
gcc:
58+
externals:
59+
- spec: [email protected] languages:='c,c++,fortran'
60+
prefix: /usr
61+
extra_attributes:
62+
compilers:
63+
c: /usr/bin/gcc-9
64+
cxx: /usr/bin/g++-9
65+
fortran: /usr/bin/gfortran-9
66+
67+
# CUDA comes from the nvidia base image.
68+
cuda:
69+
buildable: False
70+
externals:
71+
- spec: [email protected] +allow-unsupported-compilers
72+
prefix: /usr/local/cuda
73+
74+
# Use system OpenMPI, but tag it as llvm@10-built so it can satisfy %clang-10 DAGs.
75+
# (Spack does not validate the actual compiler used for system packages.)
76+
openmpi:
77+
externals:
78+
79+
prefix: /usr
80+
81+
autoconf:
82+
version: [2.71]
83+
buildable: false
84+
externals:
85+
86+
prefix: /usr
87+
automake:
88+
version: [1.16.5]
89+
buildable: false
90+
externals:
91+
92+
prefix: /usr
93+
cmake:
94+
version: [3.28.3]
95+
buildable: false
96+
externals:
97+
98+
prefix: /usr/local
99+
100+
findutils:
101+
version: [4.7.0]
102+
buildable: false
103+
externals:
104+
105+
prefix: /usr
106+
m4:
107+
buildable: false
108+
externals:
109+
110+
prefix: /usr
111+
mpfr:
112+
buildable: false
113+
externals:
114+
115+
prefix: /usr
116+
117+
netlib-lapack:
118+
buildable: false
119+
externals:
120+
121+
prefix: /usr
122+
netlib-blas:
123+
buildable: false
124+
externals:
125+
126+
prefix: /usr
127+
128+
perl:
129+
buildable: false
130+
externals:
131+
132+
prefix: /usr
133+
pkg-config:
134+
buildable: false
135+
externals:
136+
137+
prefix: /usr
138+
python:
139+
buildable: false
140+
externals:
141+
142+
prefix: /usr
143+
tar:
144+
buildable: false
145+
externals:
146+
147+
prefix: /usr
148+
unzip:
149+
buildable: false
150+
externals:
151+
152+
prefix: /usr
153+
xz:
154+
buildable: false
155+
externals:
156+
157+
prefix: /usr
158+
zlib:
159+
buildable: false
160+
externals:
161+
162+
prefix: /usr
163+

0 commit comments

Comments
 (0)