[openmp][AMDGPU] - Correct getNumberOfBlocks calculation.
authorEthan Stewart <ethan.stewart@amd.com>
Wed, 2 Nov 2022 16:37:42 +0000 (11:37 -0500)
committerEthan Stewart <ethan.stewart@amd.com>
Wed, 2 Nov 2022 16:38:56 +0000 (11:38 -0500)
commit85c2d92b9b3217229ced6a0f22e7013f7a65e124
treee5da9a6933ec13e8deaee7a987d945ffd78676bc
parent12d8e7c6ade55bba241259312e3e4bdcf6aeab81
[openmp][AMDGPU] - Correct getNumberOfBlocks calculation.

This patch fixes the 6 amdgpu buildbot lit test failures
introduced by https://reviews.llvm.org/D135444.
      libomptarget :: amdgcn-amd-amdhsa :: mapping/reduction_implicit_map.cpp
      libomptarget :: amdgcn-amd-amdhsa :: offloading/cuda_no_devices.c
      libomptarget :: amdgcn-amd-amdhsa :: offloading/target-teams-atomic.c
      libomptarget :: amdgcn-amd-amdhsa-LTO :: mapping/reduction_implicit_map.cpp
      libomptarget :: amdgcn-amd-amdhsa-LTO :: offloading/cuda_no_devices.c
      libomptarget :: amdgcn-amd-amdhsa-LTO :: offloading/target-teams-atomic.c

Reviewed By: jhuber6

Differential Revision: https://reviews.llvm.org/D137261
openmp/libomptarget/DeviceRTL/src/Mapping.cpp