Skip to content

Commit

Permalink
Merge pull request #46261 from iarspider/iarspider-llvman-het
Browse files Browse the repository at this point in the history
[LLVM Analyzer][Heterogeneous] Remove dead assignments
  • Loading branch information
cmsbuild authored Oct 6, 2024
2 parents f727e25 + 75a3e09 commit 09e5a91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
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

0 comments on commit 09e5a91

Please sign in to comment.