diff --git a/CMakeLists.txt b/CMakeLists.txt index 93fd027a..8acebc85 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,6 +58,7 @@ if(NOT ${amrex}_POPULATED) if(AMReX_GPU_BACKEND STREQUAL "CUDA") enable_language(CUDA) # include(AMReX_SetupCUDA) + elseif(AMReX_GPU_BACKEND STREQUAL "HIP") endif() # Bring the populated content into the build diff --git a/src/InteractionModel.H b/src/InteractionModel.H index c8caabb5..6a13106d 100644 --- a/src/InteractionModel.H +++ b/src/InteractionModel.H @@ -286,8 +286,10 @@ struct GetCommunityIndex { int num_comms; }; -#ifdef AMREX_USE_CUDA +#if defined(AMREX_USE_CUDA) #define devMemset cudaMemset +#elif defined(AMREX_USE_HIP) +#define devMemset (void)hipMemset #else #define devMemset memset #endif diff --git a/src/Utils.cpp b/src/Utils.cpp index ed24964d..547a5e46 100644 --- a/src/Utils.cpp +++ b/src/Utils.cpp @@ -51,7 +51,7 @@ void ExaEpi::Utils::getTestParams (TestParams& params, /*!< Test parameters */ } else if (ic_type == "urbanpop") { params.ic_type = ICType::UrbanPop; pp.get("urbanpop_filename", params.urbanpop_filename); -#ifdef AMREX_USE_CUDA +#if defined(AMREX_USE_CUDA) || defined(AMREX_USE_HIP) params.max_box_size = 500; #else params.max_box_size = 100;