[Openmp-commits] [PATCH] D31207: [OpenMP] CUDA plugin: add include directory for libelf

George Rokos via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Tue Mar 21 13:47:45 PDT 2017


grokos created this revision.
grokos added a project: OpenMP.
Herald added subscribers: mgorny, rengolin.

Allow the user to manually specify where libelf resides in case it is not installed to one of the default locations which cmake looks up. The generic-elf-64 plugin already supports that.

Thanks to Marty McFadden for submitting the patch.


Repository:
  rL LLVM

https://reviews.llvm.org/D31207

Files:
  libomptarget/plugins/cuda/CMakeLists.txt


Index: libomptarget/plugins/cuda/CMakeLists.txt
===================================================================
--- libomptarget/plugins/cuda/CMakeLists.txt
+++ libomptarget/plugins/cuda/CMakeLists.txt
@@ -24,6 +24,7 @@
       endif()
       
       include_directories(${LIBOMPTARGET_DEP_CUDA_INCLUDE_DIRS})
+      include_directories(${LIBOMPTARGET_DEP_LIBELF_INCLUDE_DIRS})
     
       add_library(omptarget.rtl.cuda SHARED src/rtl.cpp)
       
@@ -46,4 +47,4 @@
   endif()
 else(LIBOMPTARGET_DEP_LIBELF_FOUND)
   libomptarget_say("Not building CUDA offloading plugin: libelf dependency not found.")
-endif(LIBOMPTARGET_DEP_LIBELF_FOUND)
\ No newline at end of file
+endif(LIBOMPTARGET_DEP_LIBELF_FOUND)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31207.92538.patch
Type: text/x-patch
Size: 712 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20170321/414e762a/attachment.bin>


More information about the Openmp-commits mailing list