Use driver API
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
namespace deep_gemm {
|
namespace deep_gemm {
|
||||||
|
|
||||||
#if CUDART_VERSION >= 12080 and not defined(DG_JIT_USE_DRIVER_API)
|
#if CUDART_VERSION >= 12080 and defined(DG_JIT_USE_RUNTIME_API)
|
||||||
|
|
||||||
// Use CUDA runtime API
|
// Use CUDA runtime API
|
||||||
using LibraryHandle = cudaLibrary_t;
|
using LibraryHandle = cudaLibrary_t;
|
||||||
|
|||||||
@@ -28,9 +28,9 @@ third_party_include_dirs = [
|
|||||||
'third-party/cutlass/include/cutlass',
|
'third-party/cutlass/include/cutlass',
|
||||||
]
|
]
|
||||||
|
|
||||||
# Use driver API for older CUDA compatibility
|
# Use runtime API
|
||||||
if int(os.environ.get('DG_JIT_USE_DRIVER_API', '0')):
|
if int(os.environ.get('DG_JIT_USE_RUNTIME_API', '0')):
|
||||||
cxx_flags.append('-DDG_JIT_USE_DRIVER_API')
|
cxx_flags.append('-DDG_JIT_USE_RUNTIME_API')
|
||||||
|
|
||||||
|
|
||||||
class CustomBuildPy(build_py):
|
class CustomBuildPy(build_py):
|
||||||
|
|||||||
Reference in New Issue
Block a user