diff --git a/Tools/CMake/AMReXSetDefines.cmake b/Tools/CMake/AMReXSetDefines.cmake index d271321bde..3fb050385e 100644 --- a/Tools/CMake/AMReXSetDefines.cmake +++ b/Tools/CMake/AMReXSetDefines.cmake @@ -62,7 +62,7 @@ endif() if (AMReX_HIP) add_amrex_define( AMREX_USE_HIP NO_LEGACY ) add_amrex_define( NDEBUG ) # This address a bug that causes slow build times - if (${AMReX_AMD_ARCH} MATCHES "gfx10.*") + if (${AMReX_AMD_ARCH} MATCHES "gfx1[01].*") add_amrex_define( AMREX_AMDGCN_WAVEFRONT_SIZE=32 NO_LEGACY ) else () add_amrex_define( AMREX_AMDGCN_WAVEFRONT_SIZE=64 NO_LEGACY ) diff --git a/Tools/GNUMake/Make.defs b/Tools/GNUMake/Make.defs index 6a1c51c929..f33911ed3a 100644 --- a/Tools/GNUMake/Make.defs +++ b/Tools/GNUMake/Make.defs @@ -1117,8 +1117,8 @@ else ifeq ($(USE_HIP),TRUE) AMD_ARCH = $(AMREX_AMD_ARCH) endif - # For AMD GPUs, the wavefront is 64 except for gfx10??. - ifeq ($(findstring gfx10,$(AMD_ARCH)),) + # For AMD GPUs, the wavefront is 64 except for gfx10?? and gfx11??. + ifeq ($(filter gfx10% gfx11%,$(AMD_ARCH)),) DEFINES += -DAMREX_AMDGCN_WAVEFRONT_SIZE=64 else DEFINES += -DAMREX_AMDGCN_WAVEFRONT_SIZE=32