Skip to content

Commit

Permalink
Merge pull request #1499 from LLNL/bugfix/gunney/device-uses-alloc-id
Browse files Browse the repository at this point in the history
Remove redundant check and use of out-dated hard-wired value.
  • Loading branch information
gunney1 authored Jan 30, 2025
2 parents 74fbbf5 + e5fa4c7 commit c70f36f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/axom/core/execution/internal/cuda_exec.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@ struct execution_space<CUDA_EXEC<BLOCK_SIZE, ASYNC>>
}
static bool usesAllocId(int allocId) noexcept
{
return allocId == 0 ||
usesMemorySpace(axom::detail::getAllocatorSpace(allocId));
return usesMemorySpace(axom::detail::getAllocatorSpace(allocId));
}
};
} // namespace axom
Expand Down
3 changes: 1 addition & 2 deletions src/axom/core/execution/internal/hip_exec.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ struct execution_space<HIP_EXEC<BLOCK_SIZE, SYNCHRONOUS>>
}
static bool usesAllocId(int allocId) noexcept
{
return allocId == 0 ||
usesMemorySpace(axom::detail::getAllocatorSpace(allocId));
return usesMemorySpace(axom::detail::getAllocatorSpace(allocId));
}
};

Expand Down

0 comments on commit c70f36f

Please sign in to comment.