Skip to content

Commit 1a07440

Browse files
authored
Merge pull request #13 from EESSI/gpu
Make sure to give EB4 CUDA options it understands, don't include `accel/` in `gpu_arch`
2 parents 63a8c89 + 64f317f commit 1a07440

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

.github/workflows/docs.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,27 @@ jobs:
3636
# Set CPU override for the stack to query
3737
export EESSI_ARCHDETECT_OPTIONS_OVERRIDE="x86_64/intel/icelake"
3838
# Set GPU overrides for the stack to query (we have no GPU, so also override the GPU check)
39-
export EESSI_ACCELERATOR_TARGET_OVERRIDE="accel/nvidia/cc90"
4039
export EESSI_OVERRIDE_GPU_CHECK=1
4140
# First do 2023.06 for EB 4
41+
export EESSI_ACCELERATOR_TARGET_OVERRIDE="accel/nvidia/cc80" # Stick to 8.0 for EB4 as options for 9.0 set by EESSI-extend are not understood there
4242
( module load EESSI/2023.06 && module load EasyBuild/4 && module load EESSI-extend && python scripts/generate_data_files.py --eessi-version=2023.06 ) &
43+
pid1=$!
4344
# then 2023.06 for EB 5
45+
export EESSI_ACCELERATOR_TARGET_OVERRIDE="accel/nvidia/cc90"
4446
( module load EESSI/2023.06 && module load EasyBuild/5 && module load EESSI-extend && python scripts/generate_data_files.py --eessi-version=2023.06 ) &
47+
pid2=$!
4548
# then 2025.06 for EB 5 (does not have EB4)
49+
export EESSI_ACCELERATOR_TARGET_OVERRIDE="accel/nvidia/cc90"
4650
( module load EESSI/2025.06 && module load EasyBuild/5 && module load EESSI-extend && python scripts/generate_data_files.py --eessi-version=2025.06 ) &
51+
pid3=$!
52+
wait $pid1 || fail=1
53+
wait $pid2 || fail=2
54+
wait $pid3 || fail=3
55+
if [ $fail -ne 0 ]; then
56+
echo "One or more jobs failed (at least job $fail)"
57+
exit 1
58+
fi
4759
# Merge all these results together
48-
wait
4960
python scripts/merge_data_files.py out.yaml eessi*.yaml
5061
mv out.yaml docs/data/eessi_software_metadata.yaml
5162
# Generate json data files and markdown index/description for them

scripts/process_eessi_software_metadata.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ def get_software_information_by_filename(file_metadata, original_path=None, tool
103103
accel_substituted_modulefile = substituted_modulefile.replace(detected_accel_arch, accel_arch)
104104
found = subprocess.run(["grep", "-q", accel_substituted_modulefile, substituted_spider_cache]).returncode == 0
105105
if found:
106-
base_version_dict["gpu_arch"][arch].append(accel_arch)
106+
# Let's not include the "accel/" part of the accel_arch
107+
base_version_dict["gpu_arch"][arch].append(accel_arch.replace("accel/", "", 1))
107108
else:
108109
print(f"No module {accel_substituted_modulefile}...not adding software for architecture {arch}/{accel_arch}")
109110
continue

0 commit comments

Comments
 (0)