Skip to content

Commit ea9c5d9

Browse files
committed
Use driver API
1 parent 51d1e9c commit ea9c5d9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

csrc/jit/handle.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
namespace deep_gemm {
1010

11-
#if CUDART_VERSION >= 12080 and not defined(DG_JIT_USE_DRIVER_API)
11+
#if CUDART_VERSION >= 12080 and defined(DG_JIT_USE_RUNTIME_API)
1212

1313
// Use CUDA runtime API
1414
using LibraryHandle = cudaLibrary_t;

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
'third-party/cutlass/include/cutlass',
2929
]
3030

31-
# Use driver API for older CUDA compatibility
32-
if int(os.environ.get('DG_JIT_USE_DRIVER_API', '0')):
33-
cxx_flags.append('-DDG_JIT_USE_DRIVER_API')
31+
# Use runtime API
32+
if int(os.environ.get('DG_JIT_USE_RUNTIME_API', '0')):
33+
cxx_flags.append('-DDG_JIT_USE_RUNTIME_API')
3434

3535

3636
class CustomBuildPy(build_py):

0 commit comments

Comments
 (0)