1717 - 2xa100 # cc80, supported with (atleast) zen2 CPU
1818 - 4xa100 # cc80, supported with (atleast) zen2 CPU
1919 - cc01 # non-existing GPU
20+ EESSI_VERSION :
21+ - ' 2023.06'
2022 fail-fast : false
2123 steps :
2224 - name : checkout
3133 cvmfs_http_proxy : DIRECT
3234 cvmfs_repositories : software.eessi.io
3335
36+ - name : Fix EESSI version in init scripts
37+ run : |
38+ sed -i "s/__EESSI_VERSION_DEFAULT__/${{matrix.EESSI_VERSION}}/g" init/eessi_defaults
39+
3440 - name : test accelerator detection
3541 run : |
3642 export EESSI_SOFTWARE_SUBDIR_OVERRIDE='x86_64/amd/zen2'
6874 match=$(grep "${pattern}" init.out || true)
6975 test "x${match}" = "x" || (echo "unexpected match found for '${pattern}' in init output" && exit 1)
7076
71- pattern="Prepending /cvmfs/software.eessi.io/versions/2023.06 /software/linux/.*/accel/.*/modules/all to \$MODULEPATH"
77+ pattern="Prepending /cvmfs/software.eessi.io/versions/${{matrix.EESSI_VERSION}} /software/linux/.*/accel/.*/modules/all to \$MODULEPATH"
7278 echo ">>> checking for lack of pattern '${pattern}' in init output..."
7379 match=$(grep "${pattern}" init.out || true)
7480 test "x${match}" = "x" || (echo "unexpected match found for '${pattern}' in init output" && exit 1)
@@ -79,19 +85,19 @@ jobs:
7985 echo ">>> checking for pattern '${pattern}' in init output..."
8086 grep "${pattern}" init.out || (echo "FAILED 1" || exit 1)
8187
82- pattern="Prepending /cvmfs/software.eessi.io/versions/2023.06 /software/linux/.*/accel/.*/modules/all to \$MODULEPATH"
88+ pattern="Prepending /cvmfs/software.eessi.io/versions/${{matrix.EESSI_VERSION}} /software/linux/.*/accel/.*/modules/all to \$MODULEPATH"
8389 echo ">>> checking for lack of pattern '${pattern}' in init output..."
8490 match=$(grep "${pattern}" init.out || true)
8591 test "x${match}" = "x" || (echo "unexpected match found for '${pattern}' in init output" && exit 1)
8692
8793 else
8894 echo ">>> checking for 'accel/nvidia/cc80' in init output..."
8995 grep "archdetect found supported accelerator for CPU target x86_64/amd/zen2: accel/nvidia/cc80" init.out || (echo "FAILED 2" && exit 1)
90- grep "Prepending /cvmfs/software.eessi.io/versions/2023.06 /software/linux/x86_64/amd/zen2/accel/nvidia/cc80/modules/all to \$MODULEPATH" init.out || (echo "FAILED 3" && exit 1)
96+ grep "Prepending /cvmfs/software.eessi.io/versions/${{matrix.EESSI_VERSION}} /software/linux/x86_64/amd/zen2/accel/nvidia/cc80/modules/all to \$MODULEPATH" init.out || (echo "FAILED 3" && exit 1)
9197 fi
9298
9399 echo ">>> checking last line of init output..."
94- tail -1 init.out | grep "Environment set up to use EESSI (2023.06 ), have fun!" || (echo "FAILED, full init utput:" && cat init.out && exit 1)
100+ tail -1 init.out | grep "Environment set up to use EESSI (${{matrix.EESSI_VERSION}} ), have fun!" || (echo "FAILED, full init utput:" && cat init.out && exit 1)
95101
96102 echo "All checks on init output PASSED"
97103 else
@@ -118,7 +124,7 @@ jobs:
118124 echo ">>> checking for 'accel/nvidia/cc80' in init output..."
119125 grep "archdetect found supported accelerator for CPU target x86_64/amd/zen3: accel/nvidia/cc80" init.out || (echo "FAILED 1" && exit 1)
120126 grep "Using x86_64/amd/zen2 as software subdirectory" init.out || (echo "FAILED 2" && exit 1)
121- grep "Prepending /cvmfs/software.eessi.io/versions/2023.06 /software/linux/x86_64/amd/zen2/modules/all to \$MODULEPATH" init.out || (echo "FAILED 3" && exit 1)
122- grep "Prepending /cvmfs/software.eessi.io/versions/2023.06 /software/linux/x86_64/amd/zen3/accel/nvidia/cc80/modules/all to \$MODULEPATH" init.out || (echo "FAILED 4" && exit 1)
127+ grep "Prepending /cvmfs/software.eessi.io/versions/${{matrix.EESSI_VERSION}} /software/linux/x86_64/amd/zen2/modules/all to \$MODULEPATH" init.out || (echo "FAILED 3" && exit 1)
128+ grep "Prepending /cvmfs/software.eessi.io/versions/${{matrix.EESSI_VERSION}} /software/linux/x86_64/amd/zen3/accel/nvidia/cc80/modules/all to \$MODULEPATH" init.out || (echo "FAILED 4" && exit 1)
123129
124130 echo "All checks on init output PASSED"
0 commit comments