Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ namespace notcub {

// Attempt to allocate
// CMS: silently ignore errors and retry or pass them to the caller
if ((error = cudaMalloc(&search_key.d_ptr, search_key.bytes)) == cudaErrorMemoryAllocation) {
if (cudaMalloc(&search_key.d_ptr, search_key.bytes) == cudaErrorMemoryAllocation) {
// The allocation attempt failed: free all cached blocks on device and retry
if (debug)
// CMS: use raw printf
Expand Down
3 changes: 1 addition & 2 deletions HeterogeneousCore/CUDAUtilities/src/CachingHostAllocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,7 @@ namespace notcub {
if (!found) {
// Attempt to allocate
// TODO: eventually support allocation flags
if ((error = cudaHostAlloc(&search_key.d_ptr, search_key.bytes, cudaHostAllocDefault)) ==
cudaErrorMemoryAllocation) {
if (cudaHostAlloc(&search_key.d_ptr, search_key.bytes, cudaHostAllocDefault) == cudaErrorMemoryAllocation) {
// The allocation attempt failed: free all cached blocks on device and retry
if (debug)
printf(
Expand Down