From 5e0f296d5bcf61db1beb03a87b65081e24109cb1 Mon Sep 17 00:00:00 2001 From: Christian Sonnabend Date: Sun, 1 Dec 2024 19:07:08 +0100 Subject: [PATCH] Force disabling for alma linux distribution --- onnxruntime.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/onnxruntime.sh b/onnxruntime.sh index fac5b5b74b..44ac09ebcd 100644 --- a/onnxruntime.sh +++ b/onnxruntime.sh @@ -50,7 +50,8 @@ if ( [[ "$ALIBUILD_O2_FORCE_GPU" -eq 1 ]] || [[ "$ALIBUILD_ENABLE_CUDA" -eq 1 ]] ( command -v nvcc >/dev/null 2>&1 ) && \ [[ -f /usr/include/cudnn.h ]] && \ [[ -z "$ORT_CUDA_BUILD" ]] ) ) && \ - [[ "$ORT_ROCM_BUILD" -eq 0 ]]; then + [[ "$ORT_ROCM_BUILD" -eq 0 ]] && \ + [[ -z "$ALMA_LINUX_MAJOR_VERSION" ]]; then export ORT_CUDA_BUILD=1 : ${ALIBUILD_O2_OVERRIDE_CUDA_ARCHS:="sm_86"} else