diff options
Diffstat (limited to 'tools/gfx/cuda/cuda-buffer.cpp')
| -rw-r--r-- | tools/gfx/cuda/cuda-buffer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gfx/cuda/cuda-buffer.cpp b/tools/gfx/cuda/cuda-buffer.cpp index 1cd162841..bc4ef32ef 100644 --- a/tools/gfx/cuda/cuda-buffer.cpp +++ b/tools/gfx/cuda/cuda-buffer.cpp @@ -15,7 +15,7 @@ BufferResourceImpl::~BufferResourceImpl() { if (m_cudaMemory) { - SLANG_CUDA_ASSERT_ON_FAIL(cudaFree(m_cudaMemory)); + SLANG_CUDA_ASSERT_ON_FAIL(cuMemFree((CUdeviceptr)m_cudaMemory)); } } |
