diff --git a/init/eessi_environment_variables b/init/eessi_environment_variables index dbf01cc9e4..71e70ee071 100644 --- a/init/eessi_environment_variables +++ b/init/eessi_environment_variables @@ -48,6 +48,14 @@ if [ -d $EESSI_PREFIX ]; then fi if [ ! -z $EESSI_SOFTWARE_SUBDIR ]; then + # use x86_64/amd/zen3 for now when AMD Genoa (Zen4) CPU is detected, + # since optimized software installations for Zen4 are a work-in-progress, + # see https://gitlab.com/eessi/support/-/issues/37 + if [[ "${EESSI_SOFTWARE_SUBDIR}" == "x86_64/amd/zen4" ]]; then + export EESSI_SOFTWARE_SUBDIR="x86_64/amd/zen3" + echo -e "\e[33mSticking to ${EESSI_SOFTWARE_SUBDIR} for now, since optimized installations for AMD Genoa (Zen4) are a work in progress, see https://gitlab.com/eessi/support/-/issues/37 for more information\e[0m" + fi + show_msg "Using ${EESSI_SOFTWARE_SUBDIR} as software subdirectory." export EESSI_SOFTWARE_PATH=$EESSI_PREFIX/software/$EESSI_OS_TYPE/$EESSI_SOFTWARE_SUBDIR