Skip to content

Commit

Permalink
move code block that disables CUDA installation for RISC-V
Browse files Browse the repository at this point in the history
  • Loading branch information
bedroge committed Dec 5, 2024
1 parent dfe7f79 commit ebad04b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions bot/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -177,13 +177,6 @@ if [[ "${REPOSITORY}" == dev.eessi.io ]]; then
COMMON_ARGS+=("--repository" "software.eessi.io,access=ro")
fi

# Skip CUDA installation for riscv.eessi.io
if [[ "${REPOSITORY}" == riscv.eessi.io* ]]; then
echo "bot/build.sh: disabling CUDA installation for RISC-V repository ${REPOSITORY}"
INSTALL_SCRIPT_ARGS+=("--skip-cuda-install")
fi
echo "DEBUG: repo: ${REPOSITORY}, ${INSTALL_SCRIPTS_ARGS[@]}"

# make sure to use the same parent dir for storing tarballs of tmp
PREVIOUS_TMP_DIR=${PWD}/previous_tmp

Expand All @@ -198,6 +191,13 @@ fi
[[ ! -z ${BUILD_LOGS_DIR} ]] && INSTALL_SCRIPT_ARGS+=("--build-logs-dir" "${BUILD_LOGS_DIR}")
[[ ! -z ${SHARED_FS_PATH} ]] && INSTALL_SCRIPT_ARGS+=("--shared-fs-path" "${SHARED_FS_PATH}")

# Skip CUDA installation for riscv.eessi.io
if [[ "${REPOSITORY}" == riscv.eessi.io* ]]; then
echo "bot/build.sh: disabling CUDA installation for RISC-V repository ${REPOSITORY}"
INSTALL_SCRIPT_ARGS+=("--skip-cuda-install")
fi
echo "DEBUG: repo: ${REPOSITORY}, ${INSTALL_SCRIPTS_ARGS[@]}"

# determine if the removal step has to be run
# assume there's only one diff file that corresponds to the PR patch file
pr_diff=$(ls [0-9]*.diff | head -1)
Expand Down

0 comments on commit ebad04b

Please sign in to comment.