There was an error while loading. Please reload this page.
1 parent 1f3b9e5 commit 10d8f8eCopy full SHA for 10d8f8e
1 file changed
src/libspdl/cuda/storage.cpp
@@ -51,6 +51,9 @@ uintptr_t default_allocator(int size, int device, uintptr_t) {
51
TRACE_EVENT("decoding", "cudaMalloc");
52
CHECK_CUDA(cudaMalloc(&data, size), "Failed to allocate CUDA memory");
53
}
54
+ if (data == nullptr) {
55
+ SPDL_FAIL("CUDA memory allocation returned a null pointer.");
56
+ }
57
return reinterpret_cast<uintptr_t>(data);
58
59
0 commit comments