[Openmp-commits] [PATCH] D41724: [OpenMP][libomptarget] Enable the compilation of multiple bc libraries for runtime inlining

Gheorghe-Teodor Bercea via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed Feb 7 10:51:07 PST 2018


gtbercea added inline comments.


================
Comment at: libomptarget/deviceRTLs/nvptx/CMakeLists.txt:63-64
   # SM_35 is what clang uses by default.
-  set(LIBOMPTARGET_NVPTX_COMPUTE_CAPABILITY 35 CACHE STRING
-    "CUDA Compute Capability to be used to compile the NVPTX device RTL.")
-  set(CUDA_ARCH -arch sm_${LIBOMPTARGET_NVPTX_COMPUTE_CAPABILITY})
----------------
Hahnfeld wrote:
> This should definitely stay a `CACHE` variable. And I still propose to rename it to `_CAPABILITIES`...
Ah so you want me to keep this line. Sure I'll reinstate it.

Regarding the name ... this would lead to many people having to change their compiler build scripts. I'd like to avoid that.


================
Comment at: libomptarget/deviceRTLs/nvptx/CMakeLists.txt:200
+        # Install device RTL under the lib destination folder.
+        install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libomptarget-nvptx-${sm}.bc DESTINATION "lib")
+      endforeach()
----------------
Hahnfeld wrote:
> Do we want to use eg `35` as suffix or full `sm_35`?
35


Repository:
  rOMP OpenMP

https://reviews.llvm.org/D41724





More information about the Openmp-commits mailing list