diff --git a/src/axom/core/execution/internal/cuda_exec.hpp b/src/axom/core/execution/internal/cuda_exec.hpp index e152bef5c3..ec430bc229 100644 --- a/src/axom/core/execution/internal/cuda_exec.hpp +++ b/src/axom/core/execution/internal/cuda_exec.hpp @@ -117,8 +117,7 @@ struct execution_space> } static bool usesAllocId(int allocId) noexcept { - return allocId == 0 || - usesMemorySpace(axom::detail::getAllocatorSpace(allocId)); + return usesMemorySpace(axom::detail::getAllocatorSpace(allocId)); } }; } // namespace axom diff --git a/src/axom/core/execution/internal/hip_exec.hpp b/src/axom/core/execution/internal/hip_exec.hpp index 76d1eeb9fb..2e3ecdde80 100644 --- a/src/axom/core/execution/internal/hip_exec.hpp +++ b/src/axom/core/execution/internal/hip_exec.hpp @@ -73,8 +73,7 @@ struct execution_space> } static bool usesAllocId(int allocId) noexcept { - return allocId == 0 || - usesMemorySpace(axom::detail::getAllocatorSpace(allocId)); + return usesMemorySpace(axom::detail::getAllocatorSpace(allocId)); } };