From ebb80227322841f53a8525eb928710e3c5be1ea0 Mon Sep 17 00:00:00 2001 From: Johannes Doerfert Date: Fri, 21 Oct 2022 15:40:28 -0700 Subject: [PATCH] Update Mapping.cpp --- openmp/libomptarget/DeviceRTL/src/Mapping.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openmp/libomptarget/DeviceRTL/src/Mapping.cpp b/openmp/libomptarget/DeviceRTL/src/Mapping.cpp index 57a5d883d56be..23bb0602be9e0 100644 --- a/openmp/libomptarget/DeviceRTL/src/Mapping.cpp +++ b/openmp/libomptarget/DeviceRTL/src/Mapping.cpp @@ -262,7 +262,7 @@ uint32_t mapping::getWarpSize() { return impl::getWarpSize(); } uint32_t mapping::getBlockSize(bool IsSPMD) { uint32_t BlockSize = - mapping::getNumberOfProcessorElements() - (!IsSPMD * impl::getWarpSize()); + impl::getNumHardwareThreadsInBlock() - (!IsSPMD * impl::getWarpSize()); if (__teams_to_threads_ratio > 1) BlockSize *= __teams_to_threads_ratio; return BlockSize; @@ -313,7 +313,7 @@ __attribute__((noinline)) uint32_t __kmpc_get_hardware_thread_id_in_block() { __attribute__((noinline)) uint32_t __kmpc_get_hardware_num_threads_in_block() { FunctionTracingRAII(); - return impl::getNumHardwareThreadsInBlock(); + return mapping::getNumHardwareThreadsInBlock(); } __attribute__((noinline)) uint32_t __kmpc_get_warp_size() {