Skip to content

Commit

Permalink
HIP: use coarse grained host memory (AMReX-Codes#2932)
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang committed Sep 7, 2022
1 parent 7e04016 commit 9525ea8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Base/AMReX_Arena.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ Arena::allocate_system (std::size_t nbytes)
else if (arena_info.device_use_hostalloc)
{
AMREX_HIP_OR_CUDA_OR_DPCPP(
AMREX_HIP_SAFE_CALL (hipHostMalloc(&p, nbytes, hipHostMallocMapped));,
AMREX_HIP_SAFE_CALL (hipHostMalloc(&p, nbytes, hipHostMallocMapped|hipHostMallocNonCoherent));,
AMREX_CUDA_SAFE_CALL(cudaHostAlloc(&p, nbytes, cudaHostAllocMapped));,
p = sycl::malloc_host(nbytes, Gpu::Device::syclContext()));
}
Expand Down

0 comments on commit 9525ea8

Please sign in to comment.