[Openmp-commits] [openmp] 0fa04b6 - [libomptarget] Fix libomptarget.rtl.amdgpu.so installation

Ye Luo via Openmp-commits openmp-commits at lists.llvm.org
Tue Mar 5 19:35:38 PST 2024


Author: Ye Luo
Date: 2024-03-05T21:32:48-06:00
New Revision: 0fa04b6e2cd2169a8e3d22ae879394dbf07c0466

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

LOG: [libomptarget] Fix libomptarget.rtl.amdgpu.so installation

If AMD GPUs don't exist when building libomptarget, the early return causes skipping the plugin installation.

Added: 
    

Modified: 
    openmp/libomptarget/plugins-nextgen/amdgpu/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/plugins-nextgen/amdgpu/CMakeLists.txt b/openmp/libomptarget/plugins-nextgen/amdgpu/CMakeLists.txt
index 9e0ea08d8375fd..8fbfe4d9b13f73 100644
--- a/openmp/libomptarget/plugins-nextgen/amdgpu/CMakeLists.txt
+++ b/openmp/libomptarget/plugins-nextgen/amdgpu/CMakeLists.txt
@@ -109,7 +109,6 @@ if (LIBOMPTARGET_FOUND_AMDGPU_GPU OR LIBOMPTARGET_FORCE_AMDGPU_TESTS)
 else()
   libomptarget_say("Not generating AMDGPU tests, no supported devices detected."
                    " Use 'LIBOMPTARGET_FORCE_AMDGPU_TESTS' to override.")
-  return()
 endif()
 
 # Install plugin under the lib destination folder.


        


More information about the Openmp-commits mailing list