We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
bad_alloc
cuda_cub::malloc
1 parent 6278b2e commit 5ee2f88Copy full SHA for 5ee2f88
thrust/system/cuda/detail/malloc_and_free.h
@@ -63,7 +63,7 @@ void *malloc(execution_policy<DerivedPolicy> &, std::size_t n)
63
if(status != cudaSuccess)
64
{
65
cudaGetLastError(); // Clear global CUDA error state.
66
- thrust::system::detail::bad_alloc(thrust::cuda_category().message(status).c_str());
+ throw thrust::system::detail::bad_alloc(thrust::cuda_category().message(status).c_str());
67
}
68
#else
69
result = thrust::raw_pointer_cast(thrust::malloc(thrust::seq, n));
0 commit comments