From e9627ce55b42fd2599f58cd4396da9380954def0 Mon Sep 17 00:00:00 2001 From: dan_the_3rd <43445237+danthe3rd@users.noreply.github.com> Date: Tue, 11 Feb 2025 19:04:25 +0100 Subject: [PATCH] Always use cudaGetDriverEntryPoint with CUDA 12 (#2086) `cudaGetDriverEntryPointByVersion` has been added to drivers in 12.5, but we don't know at compile time the driver version. In particular, we can build with nvcc 12.8 for a 12.2 driver for instance, and this was causing the following error: ``` undefined symbol: cudaGetDriverEntryPointByVersion, ``` --- include/cutlass/cuda_host_adapter.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/cutlass/cuda_host_adapter.hpp b/include/cutlass/cuda_host_adapter.hpp index 2e62f84a..c9cd4421 100644 --- a/include/cutlass/cuda_host_adapter.hpp +++ b/include/cutlass/cuda_host_adapter.hpp @@ -104,8 +104,7 @@ namespace cutlass { #else // defined(CUTLASS_ENABLE_DIRECT_CUDA_DRIVER_CALL) -#if ((__CUDACC_VER_MAJOR__ >= 13) || \ - ((__CUDACC_VER_MAJOR__ == 12) && (__CUDACC_VER_MINOR__ >= 5))) \ +#if (__CUDACC_VER_MAJOR__ >= 13) #define CUTLASS_CUDA_DRIVER_WRAPPER_DECL(func, ver) \ template \