summaryrefslogtreecommitdiffstats
path: root/tools/gfx/cuda/cuda-buffer.cpp
diff options
context:
space:
mode:
authorskallweitNV <64953474+skallweitNV@users.noreply.github.com>2024-03-15 18:25:21 +0100
committerGitHub <noreply@github.com>2024-03-15 10:25:21 -0700
commit9ee88a43f4e67d9c714c27bf968401b6bf7524af (patch)
tree11c0f7b46168d7885f2ac220ae8bd8f51d40ac83 /tools/gfx/cuda/cuda-buffer.cpp
parentd40931cc8bde13520ea45769cf94e7cc6cc9065f (diff)
[gfx] use CUDA driver API (#3776)
Diffstat (limited to 'tools/gfx/cuda/cuda-buffer.cpp')
-rw-r--r--tools/gfx/cuda/cuda-buffer.cpp2
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));
}
}