[Openmp-commits] [openmp] c480792 - [libomptarget][nfc][devicertl] Delete unused enums

Jon Chesterfield via Openmp-commits openmp-commits at lists.llvm.org
Wed Aug 18 16:14:53 PDT 2021


Author: Jon Chesterfield
Date: 2021-08-19T00:14:34+01:00
New Revision: c480792b6ad242d2fae41bf6a850974eb60ff6c4

URL: https://github.com/llvm/llvm-project/commit/c480792b6ad242d2fae41bf6a850974eb60ff6c4
DIFF: https://github.com/llvm/llvm-project/commit/c480792b6ad242d2fae41bf6a850974eb60ff6c4.diff

LOG: [libomptarget][nfc][devicertl] Delete unused enums

Added: 
    

Modified: 
    openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h
    openmp/libomptarget/deviceRTLs/nvptx/src/target_impl.h

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h b/openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h
index 615335df54885..fe1c6a7870239 100644
--- a/openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h
+++ b/openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h
@@ -49,8 +49,6 @@
 
 // Data sharing related quantities, need to match what is used in the compiler.
 enum DATA_SHARING_SIZES {
-  // The maximum number of workers in a kernel.
-  DS_Max_Worker_Threads = 960,
   // The size reserved for data in a shared memory slot.
   DS_Slot_Size = 256,
   // The slot size that should be reserved for a working warp.

diff  --git a/openmp/libomptarget/deviceRTLs/nvptx/src/target_impl.h b/openmp/libomptarget/deviceRTLs/nvptx/src/target_impl.h
index 9e69f6016ea52..a2346d4576a53 100644
--- a/openmp/libomptarget/deviceRTLs/nvptx/src/target_impl.h
+++ b/openmp/libomptarget/deviceRTLs/nvptx/src/target_impl.h
@@ -61,16 +61,12 @@
 
 // Data sharing related quantities, need to match what is used in the compiler.
 enum DATA_SHARING_SIZES {
-  // The maximum number of workers in a kernel.
-  DS_Max_Worker_Threads = 992,
   // The size reserved for data in a shared memory slot.
   DS_Slot_Size = 256,
   // The slot size that should be reserved for a working warp.
   DS_Worker_Warp_Slot_Size = WARPSIZE * DS_Slot_Size,
   // The maximum number of warps in use
   DS_Max_Warp_Number = 32,
-  // The size of the preallocated shared memory buffer per team
-  DS_Shared_Memory_Size = 128,
 };
 
 enum : __kmpc_impl_lanemask_t {


        


More information about the Openmp-commits mailing list