]> rtime.felk.cvut.cz Git - hercules2020/hercules-compiler.git/commitdiff
Add require-cuda.patch
authorMichal Sojka <michal.sojka@cvut.cz>
Thu, 13 Sep 2018 08:28:35 +0000 (10:28 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Thu, 13 Sep 2018 08:28:35 +0000 (10:28 +0200)
Requiring CUDA cannot be specified from cmake command line, so we have
to patch the source.

debian/patches/require-cuda.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/require-cuda.patch b/debian/patches/require-cuda.patch
new file mode 100644 (file)
index 0000000..c4bc92a
--- /dev/null
@@ -0,0 +1,33 @@
+Description: Require CUDA for OpenMP target
+ It makes little sense to have HERCULES compiler without CUDA offloading.
+ .
+ hercules-compiler (2018.7-1) unstable; urgency=medium
+ .
+   * Clean native build directory
+   * Update to the new compiler version published by ETHZ
+Author: Michal Sojka <michal.sojka@cvut.cz>
+
+---
+The information above should follow the Patch Tagging Guidelines, please
+checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
+are templates for supplementary fields that you might want to add:
+
+Origin: <vendor|upstream|other>, <url of original patch>
+Bug: <url in upstream bugtracker>
+Bug-Debian: https://bugs.debian.org/<bugnumber>
+Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
+Forwarded: <no|not-needed|url proving that it has been forwarded>
+Reviewed-By: <name and email of someone who approved the patch>
+Last-Update: 2018-09-13
+
+--- hercules-compiler-2018.7.orig/openmp/libomptarget/cmake/Modules/LibomptargetGetDependencies.cmake
++++ hercules-compiler-2018.7/openmp/libomptarget/cmake/Modules/LibomptargetGetDependencies.cmake
+@@ -112,7 +112,7 @@ mark_as_advanced(
+ ################################################################################
+ # Looking for CUDA...
+ ################################################################################
+-find_package(CUDA QUIET)
++find_package(CUDA REQUIRED)
+ set(LIBOMPTARGET_DEP_CUDA_FOUND ${CUDA_FOUND})
+ set(LIBOMPTARGET_DEP_CUDA_LIBRARIES ${CUDA_LIBRARIES})
index 3825761c6a5221dc8d3b19a25edaa9e015523783..de2441767bc95a5f6baa47d1629069a58c53d728 100644 (file)
@@ -1,2 +1,3 @@
 configuration.patch
 Guard-architecture-dependent-code-with-#ifdefs.patch
+require-cuda.patch