From 7434f13cec40118ccbcfa25ae7aaa8ddf4ce1620 Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Tue, 20 Oct 2026 12:20:14 -0500 Subject: [PATCH] Fix CUDA feature test to expect the CUDA_VERSION the feature exports The feature derives CUDA_VERSION from the CUDA_VERSION macro in cuda.h (13040), which yields 13.4.0, not the 13.4.3 toolkit release. --- features/test/cuda/test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/test/cuda/test.sh b/features/test/cuda/test.sh index 38d0b291..a7ad15d0 100644 --- a/features/test/cuda/test.sh +++ b/features/test/cuda/test.sh @@ -17,10 +17,10 @@ source dev-container-features-test-lib # Feature-specific tests # The 'check' command comes from the dev-container-features-test-lib. -check "CUDA version" bash -c "echo '$CUDA_VERSION' | grep '13.4.3'"; +check "CUDA version" bash -c "echo '$CUDA_VERSION' | grep '13.4.0'"; check "CUDA major version" bash -c "echo '$CUDA_VERSION_MAJOR' | grep '13'"; check "CUDA minor version" bash -c "echo '$CUDA_VERSION_MINOR' | grep '4'"; -check "CUDA patch version" bash -c "echo '$CUDA_VERSION_PATCH' | grep '2'"; +check "CUDA patch version" bash -c "echo '$CUDA_VERSION_PATCH' | grep '0'"; check "nvcc version" bash -c "nvcc --version | grep 'release 13.4'"; check "installed" stat /usr/local/cuda-13.4 /usr/local/cuda check "nvcc exists and is on path" which nvcc