Debian Codegraph @

packages/stk/stk_integration_tests/cmake_install_test/README_spack_recipe

raw
1
2 # recipe for creating a spack env and building trilinos/stk,
3 # then building a stk-test-app using the spack-installed trilinos/stk
4
5 mkdir -p /fgs/william/sandbox_spack
6 cd /fgs/william/sandbox_spack
7
8 git clone --depth=100 --branch=releases/v0.21 https://github.com/spack/spack.git
9 source ./spack/share/spack/setup-env.sh
10
11 spack env create mystkenv
12 spack env activate mystkenv
13 #want to add gcc 10.2.0 compiler
14 module load sierra-devel
15 spack compiler add
16 #optionally remove old compilers that spack found
17 spack compiler remove [email protected]
18 spack compiler remove [email protected]
19
20 spack add trilinos@master +exodus+zoltan2+stk
21
22 spack concretize -f
23 spack install
24
25 spack load cmake
26 spack load openmpi
27
28 cp -r /fgs/william/code/stk/stk_integration_tests/cmake_install_test/stk_test_app .
29 cd stk_test_app
30 source run_cmake_in_spack_env
31 #note: the run_cmake_in_spack_env script also did 'cd build' so you're now in build subdir
32 make
33 mpirun --np 4 ./test_stk_app
34