[Openmp-commits] [openmp] d4f4f80 - Revert "[libomptarget] Fix CUDA plugin build regression"

Ulrich Weigand via Openmp-commits openmp-commits at lists.llvm.org
Wed Mar 6 12:38:05 PST 2024


Author: Ulrich Weigand
Date: 2024-03-06T21:37:35+01:00
New Revision: d4f4f802363d4227c61553872bdd61abcdeb8c08

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

LOG: Revert "[libomptarget] Fix CUDA plugin build regression"

This reverts commit b64482e23eefaef7738fde35d0b7c4174aaa6597.

Added: 
    

Modified: 
    openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp b/openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp
index e9742c9a13dea0..f85a00cd1cd530 100644
--- a/openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp
+++ b/openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp
@@ -1160,7 +1160,7 @@ struct CUDADeviceTy : public GenericDeviceTy {
     // automatically so we must create it ourselves. The backend will emit
     // several globals that contain function pointers we can call. These are
     // prefixed with a known name due to Nvidia's lack of section support.
-    auto ELFObjOrErr = ELF64LEObjectFile::create(Image.getMemoryBuffer());
+    auto ELFObjOrErr = Handler.getELFObjectFile(Image);
     if (!ELFObjOrErr)
       return ELFObjOrErr.takeError();
 


        


More information about the Openmp-commits mailing list