diff options
| author | jarcherNV <jarcher@nvidia.com> | 2025-08-15 15:16:04 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-15 22:16:04 +0000 |
| commit | 3639e71dfcb7e5284949a98d1fefddda118338be (patch) | |
| tree | 084c2cc25dbcc65bdea3dbc8deffe28c6a12a903 /tools/gfx/cuda/cuda-device.cpp | |
| parent | af27de01532904508e6a630c213249e93fdd1c66 (diff) | |
Update cuda context creation to support cuda 13 (#8181)
Update cuda context creation to support both cuda 12 and cuda 13.
Diffstat (limited to 'tools/gfx/cuda/cuda-device.cpp')
| -rw-r--r-- | tools/gfx/cuda/cuda-device.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/gfx/cuda/cuda-device.cpp b/tools/gfx/cuda/cuda-device.cpp index 129ea793f..be190babf 100644 --- a/tools/gfx/cuda/cuda-device.cpp +++ b/tools/gfx/cuda/cuda-device.cpp @@ -180,8 +180,9 @@ SLANG_NO_THROW SlangResult SLANG_MCALL DeviceImpl::initialize(const Desc& desc) SLANG_CUDA_RETURN_ON_FAIL(cuDeviceGet(&m_device, m_deviceIndex)); + // Use version-aware context creation that works with both CUDA 12 and CUDA 13 SLANG_CUDA_RETURN_WITH_REPORT_ON_FAIL( - cuCtxCreate(&m_context->m_context, 0, m_device), + createCudaContext(&m_context->m_context, 0, m_device), reportType); { |
