Skip to content

Commit

Permalink
Always use cudaGetDriverEntryPoint with CUDA 12 (#2086)
Browse files Browse the repository at this point in the history
`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,
```
  • Loading branch information
danthe3rd authored Feb 11, 2025
1 parent ad6e1ec commit e9627ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/cutlass/cuda_host_adapter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <typename... Args> \
Expand Down

0 comments on commit e9627ce

Please sign in to comment.