[Openmp-commits] [openmp] bda5625 - [Libomptarget][NFC] Fix unhandled allocator enum value

Joseph Huber via Openmp-commits openmp-commits at lists.llvm.org
Mon Jan 8 08:17:12 PST 2024


Author: Joseph Huber
Date: 2024-01-08T10:17:05-06:00
New Revision: bda562519b89ea3832be00d8ac75cfcdb924dce2

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

LOG: [Libomptarget][NFC] Fix unhandled allocator enum value

Added: 
    

Modified: 
    openmp/libomptarget/plugins-nextgen/common/src/PluginInterface.cpp

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/plugins-nextgen/common/src/PluginInterface.cpp b/openmp/libomptarget/plugins-nextgen/common/src/PluginInterface.cpp
index be9ace571f54fd..9490e58fc669cd 100644
--- a/openmp/libomptarget/plugins-nextgen/common/src/PluginInterface.cpp
+++ b/openmp/libomptarget/plugins-nextgen/common/src/PluginInterface.cpp
@@ -1398,6 +1398,7 @@ Expected<void *> GenericDeviceTy::dataAlloc(int64_t Size, void *HostPtr,
 
   switch (Kind) {
   case TARGET_ALLOC_DEFAULT:
+  case TARGET_ALLOC_DEVICE_NON_BLOCKING:
   case TARGET_ALLOC_DEVICE:
     if (MemoryManager) {
       Alloc = MemoryManager->allocate(Size, HostPtr);


        


More information about the Openmp-commits mailing list