File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,9 @@ def check_env_endswith(var1, var2):
4444 # EESSI_ACCEL_SUBDIR is what is detected by archdetect (or respects EESSI_ACCELERATOR_TARGET_OVERRIDE)
4545 check_env_equals ("EESSI_ACCELERATOR_TARGET_OVERRIDE" , "EESSI_ACCEL_SUBDIR" )
4646 # special case is where EESSI_ACCELERATOR_TARGET_OVERRIDE may not match the final
47- # accelerator architecture chosen (in CI we deliberately choose a non-existent CUDA
48- # compute cabability for one case)
49- os .environ ["EESSI_FINAL_CC" ] = expected_eessi_accel_arch [:- 1 ] + "0"
50- check_env_equals ("EESSI_ACCELERATOR_TARGET" , "EESSI_FINAL_CC" )
47+ # accelerator architecture chosen.
48+ # In CI we set FINAL_ACCELERATOR_PATH_EXPECTED to allow us to compare against an expected value.
49+ check_env_equals ("EESSI_ACCELERATOR_TARGET" , "FINAL_ACCELERATOR_PATH_EXPECTED" )
5150 # verify the software paths that should exist
5251 check_env_endswith ("EESSI_SOFTWARE_PATH" , "EESSI_SOFTWARE_SUBDIR" )
5352 check_env_endswith ("EESSI_SITE_SOFTWARE_PATH" , "EESSI_SOFTWARE_SUBDIR" )
Original file line number Diff line number Diff line change 7474 - x86_64/amd/zen4
7575 EESSI_ACCELERATOR_TARGET_OVERRIDE :
7676 - accel/nvidia/cc80
77- # This should fall back to cc70
77+ # This should fall back to cc70 but that is checked later (in this step we just check for consistency)
7878 - accel/nvidia/cc77
79+
7980 steps :
8081 - name : Check out software-layer repository
8182 uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
@@ -160,8 +161,14 @@ jobs:
160161 EESSI_ACCELERATOR_TARGET_OVERRIDE :
161162 - none
162163 - accel/nvidia/cc80
163- # This should fall back to cc70
164164 - accel/nvidia/cc77
165+ include :
166+ # For each override we expect a specific path (which may differ from the original due to overrides)
167+ - EESSI_ACCELERATOR_TARGET_OVERRIDE : accel/nvidia/cc80
168+ FINAL_ACCELERATOR_PATH_EXPECTED : accel/nvidia/cc80
169+ - EESSI_ACCELERATOR_TARGET_OVERRIDE : accel/nvidia/cc77 # deliberately chose a non-existent CUDA capability
170+ FINAL_ACCELERATOR_PATH_EXPECTED : accel/nvidia/cc70 # this reverts to the fallback case (which does exist)
171+
165172 steps :
166173 - name : Check out software-layer repository
167174 uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
You can’t perform that action at this time.
0 commit comments