Skip to content

Commit

Permalink
add option for max gpu threads
Browse files Browse the repository at this point in the history
  • Loading branch information
FR13ndSDP committed Oct 21, 2023
1 parent c3bb828 commit a3d35c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Util/CMake/SetAMReXOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ set(AMReX_HDF5 ${OPTION_ENABLE_HDF5})

if(OPTION_CUDA)
set(AMReX_GPU_BACKEND CUDA CACHE STRING "AMReX GPU type" FORCE)
set(AMReX_GPU_MAX_THREADS 256 CACHE STRING "Max threads to use" FORCE)
elseif(OPTION_HIP)
set(AMReX_GPU_BACKEND HIP CACHE STRING "AMReX GPU type" FORCE)
set(AMReX_AMD_ARCH ${AMD_ARCH} CACHE STRING "AMD GPU ARCH" FORCE)
set(AMReX_GPU_MAX_THREADS 256 CACHE STRING "Max threads to use" FORCE)
elseif(OPTION_SYCL)
set(AMReX_GPU_BACKEND SYCL CACHE STRING "AMReX GPU type" FORCE)
else()
Expand Down

0 comments on commit a3d35c4

Please sign in to comment.