Skip to content
Snippets Groups Projects
Commit 594da695 authored by Bram Veenboer's avatar Bram Veenboer
Browse files

Use 'gcc -dumpversion' to get major version

parent 90e619a9
Branches update
No related tags found
2 merge requests!5Combine new spack files + CI/CD branches,!4Update all the scripts/configuration to latest 'best known'
......@@ -28,7 +28,7 @@ module load "${MODULES[@]}"
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CUDA_ROOT/targets/x86_64-linux/lib
# Some of GCCs libraries are not found, add them to the library path
GCC_VERSION_MAJOR=$(echo $GCC_VERSION | cut -d. -f1)
GCC_VERSION_MAJOR=$(gcc -dumpversion)
export LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/gcc/x86_64-linux-gnu/$GCC_VERSION_MAJOR
# Make OpenMPI config findable
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment