unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob ed20f025036e96eb4a2848386f3929570a776639 1932 bytes (raw)
name: gnu/packages/patches/rocm-opencl-runtime-4.3-noopencl.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
 
Do not build and install libOpenCL.

--- b/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -70,7 +70,7 @@
     ${ROCclr_DIR}
     ${LIBROCclr_STATIC_DIR})
 
-add_subdirectory(khronos/icd)
+#add_subdirectory(khronos/icd)
 add_subdirectory(amdocl)
 #add_subdirectory(tools/clinfo)
 add_subdirectory(tools/cltrace)
@@ -93,9 +93,6 @@
     OUTPUT_VARIABLE OPENCL_VERSION_GITDATE
     OUTPUT_STRIP_TRAILING_WHITESPACE)
 
-get_target_property(OPENCL_LIB_VERSION_MAJOR OpenCL SOVERSION)
-get_target_property(OPENCL_LIB_VERSION_STRING OpenCL VERSION)
-
 find_package(ROCM QUIET CONFIG PATHS /opt/rocm)
 
 if(ROCM_FOUND)
@@ -117,25 +114,6 @@
 install(PROGRAMS $<TARGET_FILE:amdocl64>
         DESTINATION lib
         COMPONENT MAIN)
-install(PROGRAMS $<TARGET_FILE:OpenCL>
-        DESTINATION lib
-        COMPONENT MAIN)
-install(PROGRAMS $<TARGET_SONAME_FILE:OpenCL>
-        DESTINATION lib
-        COMPONENT MAIN)
-
-# DEV package
-install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/khronos/headers/opencl2.2/CL"
-        DESTINATION include
-        COMPONENT DEV
-        USE_SOURCE_PERMISSIONS
-        PATTERN cl_d3d10.h EXCLUDE
-        PATTERN cl_d3d11.h EXCLUDE
-        PATTERN cl_dx9_media_sharing.h EXCLUDE
-        PATTERN cl_egl.h EXCLUDE)
-install(PROGRAMS $<TARGET_LINKER_FILE:OpenCL>
-        DESTINATION lib
-        COMPONENT DEV)
 
 #############################
 # Packaging steps
--- a/khronos/icd/CMakeLists.txt	2020-06-07 16:05:32.425022904 +0200
+++ b/khronos/icd/CMakeLists.txt	2020-06-07 16:06:03.273022786 +0200
@@ -132,7 +132,7 @@
     add_subdirectory (test)
 endif()
 
-install (TARGETS OpenCL
-    RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
-    ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
-    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
+#install (TARGETS OpenCL
+#    RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
+#    ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
+#    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})

debug log:

solving ed20f02503 ...
found ed20f02503 in https://git.savannah.gnu.org/cgit/guix.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).