Gentoo Archives: gentoo-commits

From: Craig Andrews <candrews@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/rocm-opencl-runtime/files/
Date: Sun, 30 Aug 2020 20:04:59
Message-Id: 1598817890.dd648a3acf7fcd56333761733778ae5ec4e9a8cd.candrews@gentoo
1 commit: dd648a3acf7fcd56333761733778ae5ec4e9a8cd
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Fri Aug 28 16:45:57 2020 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 30 20:04:50 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd648a3a
7
8 dev-libs/rocm-opencl-runtime: remove unused patches
9
10 Package-Manager: Portage-3.0.4, Repoman-3.0.1
11 Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
12 Closes: https://github.com/gentoo/gentoo/pull/17298
13 Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>
14
15 .../rocm-opencl-runtime-2.8.0-amdocl64icd.patch | 13 --
16 ...-opencl-runtime-2.8.0-change-AMDCompilerh.patch | 79 -----------
17 .../rocm-opencl-runtime-2.8.0-change-opencl.patch | 70 ----------
18 .../rocm-opencl-runtime-2.8.0-update-README.patch | 41 ------
19 ...ncl-runtime-3.0.0-change-install-location.patch | 147 ---------------------
20 .../rocm-opencl-runtime-3.5.0-amdocl64icd.patch | 11 --
21 ...ncl-runtime-3.5.0-change-install-location.patch | 77 -----------
22 7 files changed, 438 deletions(-)
23
24 diff --git a/dev-libs/rocm-opencl-runtime/files/rocm-opencl-runtime-2.8.0-amdocl64icd.patch b/dev-libs/rocm-opencl-runtime/files/rocm-opencl-runtime-2.8.0-amdocl64icd.patch
25 deleted file mode 100644
26 index f399f360c9c..00000000000
27 --- a/dev-libs/rocm-opencl-runtime/files/rocm-opencl-runtime-2.8.0-amdocl64icd.patch
28 +++ /dev/null
29 @@ -1,13 +0,0 @@
30 -diff --git a/api/opencl/amdocl/CMakeLists.txt b/api/opencl/amdocl/CMakeLists.txt
31 -index 8ea8517..d1223ed 100644
32 ---- a/api/opencl/amdocl/CMakeLists.txt
33 -+++ b/api/opencl/amdocl/CMakeLists.txt
34 -@@ -82,3 +82,7 @@ if(${USE_COMGR_LIBRARY} MATCHES "yes")
35 - else()
36 - target_link_libraries(amdocl64 opencl_driver oclelf pthread dl ${ROCT_LIBRARIES} ${ROCR_LIBRARIES})
37 - endif()
38 -+
39 -+file(GENERATE OUTPUT "${CMAKE_BINARY_DIR}/amdocl64.icd" CONTENT "$<TARGET_FILE_NAME:amdocl64>")
40 -+install(FILES "${CMAKE_BINARY_DIR}/amdocl64.icd" DESTINATION "${CMAKE_INSTALL_FULL_SYSCONFDIR}/OpenCL/vendors/")
41 -+
42 -
43
44 diff --git a/dev-libs/rocm-opencl-runtime/files/rocm-opencl-runtime-2.8.0-change-AMDCompilerh.patch b/dev-libs/rocm-opencl-runtime/files/rocm-opencl-runtime-2.8.0-change-AMDCompilerh.patch
45 deleted file mode 100644
46 index 796277e4672..00000000000
47 --- a/dev-libs/rocm-opencl-runtime/files/rocm-opencl-runtime-2.8.0-change-AMDCompilerh.patch
48 +++ /dev/null
49 @@ -1,79 +0,0 @@
50 -diff --git a/runtime/device/device.hpp b/runtime/device/device.hpp
51 -index 9eb45b2..a721463 100644
52 ---- a/runtime/device/device.hpp
53 -+++ b/runtime/device/device.hpp
54 -@@ -21,7 +21,7 @@
55 -
56 - #if defined(WITH_LIGHTNING_COMPILER) && !defined(USE_COMGR_LIBRARY)
57 - #include "caching/cache.hpp"
58 --#include "driver/AmdCompiler.h"
59 -+#include "AmdCompiler.h"
60 - #endif // defined(WITH_LIGHTNING_COMPILER) && ! defined(USE_COMGR_LIBRARY)
61 - #include "acl.h"
62 -
63 -diff --git a/runtime/device/devprogram.cpp b/runtime/device/devprogram.cpp
64 -index 587e950..dc233f3 100644
65 ---- a/runtime/device/devprogram.cpp
66 -+++ b/runtime/device/devprogram.cpp
67 -@@ -14,7 +14,7 @@
68 -
69 - #if defined(WITH_LIGHTNING_COMPILER) || defined(USE_COMGR_LIBRARY)
70 - #ifndef USE_COMGR_LIBRARY
71 --#include "driver/AmdCompiler.h"
72 -+#include "AmdCompiler.h"
73 - #include "libraries.amdgcn.inc"
74 - #include "opencl1.2-c.amdgcn.inc"
75 - #include "opencl2.0-c.amdgcn.inc"
76 -diff --git a/runtime/device/devprogram.hpp b/runtime/device/devprogram.hpp
77 -index 68de7ba..8b91ba2 100644
78 ---- a/runtime/device/devprogram.hpp
79 -+++ b/runtime/device/devprogram.hpp
80 -@@ -11,7 +11,7 @@
81 -
82 - #if defined(WITH_LIGHTNING_COMPILER) || defined(USE_COMGR_LIBRARY)
83 - #ifndef USE_COMGR_LIBRARY
84 --#include "driver/AmdCompiler.h"
85 -+#include "AmdCompiler.h"
86 - #else
87 - #include "amd_comgr.h"
88 - #endif
89 -diff --git a/runtime/device/rocm/rocdevice.cpp b/runtime/device/rocm/rocdevice.cpp
90 -index 4cba9d7..7ab30ed 100644
91 ---- a/runtime/device/rocm/rocdevice.cpp
92 -+++ b/runtime/device/rocm/rocdevice.cpp
93 -@@ -20,7 +20,7 @@
94 - #include "device/rocm/rocvirtual.hpp"
95 - #include "device/rocm/rocprogram.hpp"
96 - #if defined(WITH_LIGHTNING_COMPILER) && ! defined(USE_COMGR_LIBRARY)
97 --#include "driver/AmdCompiler.h"
98 -+#include "AmdCompiler.h"
99 - #endif // defined(WITH_LIGHTNING_COMPILER) && ! defined(USE_COMGR_LIBRARY)
100 - #include "device/rocm/rocmemory.hpp"
101 - #include "device/rocm/rocglinterop.hpp"
102 -diff --git a/runtime/device/rocm/rockernel.cpp b/runtime/device/rocm/rockernel.cpp
103 -index 8a28acc..7d5b62d 100644
104 ---- a/runtime/device/rocm/rockernel.cpp
105 -+++ b/runtime/device/rocm/rockernel.cpp
106 -@@ -11,7 +11,7 @@
107 -
108 - #if defined(WITH_LIGHTNING_COMPILER) || defined(USE_COMGR_LIBRARY)
109 - #ifndef USE_COMGR_LIBRARY
110 --#include "driver/AmdCompiler.h"
111 -+#include "AmdCompiler.h"
112 - #endif
113 - #include "llvm/Support/AMDGPUMetadata.h"
114 -
115 -diff --git a/runtime/device/rocm/rocprogram.cpp b/runtime/device/rocm/rocprogram.cpp
116 -index 0155dc2..613d00d 100644
117 ---- a/runtime/device/rocm/rocprogram.cpp
118 -+++ b/runtime/device/rocm/rocprogram.cpp
119 -@@ -10,7 +10,7 @@
120 - #if defined(WITH_LIGHTNING_COMPILER) || defined(USE_COMGR_LIBRARY)
121 - #include <gelf.h>
122 - #ifndef USE_COMGR_LIBRARY
123 --#include "driver/AmdCompiler.h"
124 -+#include "AmdCompiler.h"
125 - #include "libraries.amdgcn.inc"
126 - #endif
127 - #endif // defined(WITH_LIGHTNING_COMPILER) || defined(USE_COMGR_LIBRARY)
128 -
129
130 diff --git a/dev-libs/rocm-opencl-runtime/files/rocm-opencl-runtime-2.8.0-change-opencl.patch b/dev-libs/rocm-opencl-runtime/files/rocm-opencl-runtime-2.8.0-change-opencl.patch
131 deleted file mode 100644
132 index cd6695e2d4f..00000000000
133 --- a/dev-libs/rocm-opencl-runtime/files/rocm-opencl-runtime-2.8.0-change-opencl.patch
134 +++ /dev/null
135 @@ -1,70 +0,0 @@
136 -diff --git a/runtime/CMakeLists.txt b/runtime/CMakeLists.txt
137 -index 2c9dfd6..863b4bf 100644
138 ---- a/runtime/CMakeLists.txt
139 -+++ b/runtime/CMakeLists.txt
140 -@@ -23,7 +23,6 @@ if (${USE_COMGR_LIBRARY} STREQUAL "no")
141 - include_directories(${CMAKE_SOURCE_DIR}/compiler/llvm/include)
142 - endif() # if (${USE_COMGR_LIBRARY} STREQUAL "no")
143 -
144 --include_directories(${CMAKE_SOURCE_DIR}/compiler/driver/src)
145 - include_directories(${CMAKE_SOURCE_DIR}/compiler/lib)
146 - include_directories(${CMAKE_SOURCE_DIR}/compiler/lib/include)
147 - include_directories(${CMAKE_SOURCE_DIR}/compiler/lib/backends/common)
148 -@@ -79,6 +78,8 @@ add_library(oclruntime OBJECT
149 - ${COMGR_CPP}
150 - )
151 - set_target_properties(oclruntime PROPERTIES POSITION_INDEPENDENT_CODE ON)
152 -+#add_dependencies(oclruntime opencl1.2-c.amdgcn.inc_target)
153 -+#add_dependencies(oclruntime opencl2.0-c.amdgcn.inc_target)
154 -
155 - set(AMDGCN_DEP_LIST)
156 - if(AMDGCN_TARGETS_LIB_DEPS)
157 -diff --git a/runtime/device/rocm/CMakeLists.txt b/runtime/device/rocm/CMakeLists.txt
158 -index 5870b65..39166f3 100644
159 ---- a/runtime/device/rocm/CMakeLists.txt
160 -+++ b/runtime/device/rocm/CMakeLists.txt
161 -@@ -1,3 +1,21 @@
162 -+find_package(Clang REQUIRED CONFIG)
163 -+
164 -+# FIXME: CLANG_CMAKE_DIR seems like the most stable way to find this, but
165 -+# really there is no way to reliably discover this header.
166 -+#
167 -+# We effectively back up to the Clang output directory (for the case of a build
168 -+# tree) or install prefix (for the case of an installed copy), and then search
169 -+# for a file named opencl-c.h anywhere below that. We take the first result in
170 -+# the case where there are multiple (e.g. if there is an installed copy nested
171 -+# in a build directory). This is a bit imprecise, but it covers cases like MSVC
172 -+# adding some additional configuration-specific subdirectories to the build
173 -+# tree but not to an installed copy.
174 -+file(GLOB_RECURSE OPENCL_C_H_LIST "${CLANG_CMAKE_DIR}/../../../*/opencl-c.h")
175 -+list(GET OPENCL_C_H_LIST 0 OPENCL_C_H)
176 -+if (NOT EXISTS "${OPENCL_C_H}" OR IS_DIRECTORY "${OPENCL_C_H}")
177 -+ message(FATAL_ERROR "Unable to locate opencl-c.h from the supplied Clang. The path '${CLANG_CMAKE_DIR}/../../../*' was searched.")
178 -+endif()
179 -+
180 - include(bc2h)
181 -
182 - set(INC_SUFFIX "amdgcn.inc")
183 -@@ -82,8 +100,8 @@ if (${USE_COMGR_LIBRARY} STREQUAL "no")
184 -
185 - # generating opencl*.inc files
186 - add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/opencl1.2-c.amdgcn.pch
187 -- COMMAND clang -cc1 -x cl-header -triple amdgcn-amd-amdhsa -Werror -O3 -DNDEBUG -cl-std=CL1.2 -emit-pch -o ${CMAKE_CURRENT_BINARY_DIR}/opencl1.2-c.amdgcn.pch < ${CMAKE_SOURCE_DIR}/compiler/llvm/tools/clang/lib/Headers/opencl-c.h
188 -- DEPENDS clang ${CMAKE_SOURCE_DIR}/compiler/llvm/tools/clang/lib/Headers/opencl-c.h
189 -+ COMMAND clang -cc1 -x cl-header -triple amdgcn-amd-amdhsa -Werror -O3 -DNDEBUG -cl-std=CL1.2 -emit-pch -o ${CMAKE_CURRENT_BINARY_DIR}/opencl1.2-c.amdgcn.pch < ${OPENCL_C_H}
190 -+ DEPENDS clang ${OPENCL_C_H}
191 - COMMENT "Generating opencl1.2-c.amdgcn.pch"
192 - )
193 - add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/opencl1.2-c.amdgcn.inc
194 -@@ -96,8 +114,8 @@ if (${USE_COMGR_LIBRARY} STREQUAL "no")
195 - add_dependencies(oclrocm opencl1.2-c.amdgcn.inc_target)
196 -
197 - add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/opencl2.0-c.amdgcn.pch
198 -- COMMAND clang -cc1 -x cl-header -triple amdgcn-amd-amdhsa -Werror -O3 -DNDEBUG -cl-std=CL2.0 -emit-pch -o ${CMAKE_CURRENT_BINARY_DIR}/opencl2.0-c.amdgcn.pch < ${CMAKE_SOURCE_DIR}/compiler/llvm/tools/clang/lib/Headers/opencl-c.h
199 -- DEPENDS clang ${CMAKE_SOURCE_DIR}/compiler/llvm/tools/clang/lib/Headers/opencl-c.h
200 -+ COMMAND clang -cc1 -x cl-header -triple amdgcn-amd-amdhsa -Werror -O3 -DNDEBUG -cl-std=CL2.0 -emit-pch -o ${CMAKE_CURRENT_BINARY_DIR}/opencl2.0-c.amdgcn.pch < ${OPENCL_C_H}
201 -+ DEPENDS clang ${OPENCL_C_H}
202 - COMMENT "Generating opencl2.0-c.amdgcn.pch"
203 - )
204 - add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/opencl2.0-c.amdgcn.inc
205 -
206
207 diff --git a/dev-libs/rocm-opencl-runtime/files/rocm-opencl-runtime-2.8.0-update-README.patch b/dev-libs/rocm-opencl-runtime/files/rocm-opencl-runtime-2.8.0-update-README.patch
208 deleted file mode 100644
209 index 741faf20ca7..00000000000
210 --- a/dev-libs/rocm-opencl-runtime/files/rocm-opencl-runtime-2.8.0-update-README.patch
211 +++ /dev/null
212 @@ -1,41 +0,0 @@
213 -diff --git a/README.md b/README.md
214 -index a834965..7fea026 100644
215 ---- a/README.md
216 -+++ b/README.md
217 -@@ -8,12 +8,6 @@ Developer preview Version 2 of the new
218 -
219 -
220 - ## GETTING REPO
221 --
222 --Repo is a git wrapper that manages a collection of git repositories. Install this tool and add it to the command search PATH:
223 --
224 -- curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
225 -- chmod a+x ~/bin/repo
226 --
227 - ## GETTING THE SOURCE CODE
228 -
229 - Main OpenCLâ„¢ Compatible Components:
230 -@@ -26,11 +20,6 @@ Main OpenCLâ„¢ Compatible Components:
231 - * https://github.com/RadeonOpenCompute/lld
232 - * https://github.com/KhronosGroup/OpenCL-ICD-Loader
233 -
234 --Download the git projects with the following commands:
235 --
236 -- ~/bin/repo init -u https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime.git -b master -m opencl.xml
237 -- ~/bin/repo sync
238 --
239 - ## INSTALL ROCm
240 -
241 - Follow the instructions at https://rocm.github.io/install.html to install ROCm.
242 -@@ -45,6 +34,11 @@ Copy the amdocl64.icd file to /etc/OpenCL/vendors
243 -
244 - To install additional dependencies:
245 -
246 -+* ROCm-OpenCL-Runtime
247 -+* ROCm-OpenCL-Driver
248 -+* ROC versions of LLVM, Clang, and lld
249 -+* ROCm-Device-Libs
250 -+* OpenCL-ICD-Loade
251 - * OCaml
252 - * findlib
253 - * A Python 2 environment or active virtualenv with the Microsoft Z3 package
254
255 diff --git a/dev-libs/rocm-opencl-runtime/files/rocm-opencl-runtime-3.0.0-change-install-location.patch b/dev-libs/rocm-opencl-runtime/files/rocm-opencl-runtime-3.0.0-change-install-location.patch
256 deleted file mode 100644
257 index eb1901f6a1e..00000000000
258 --- a/dev-libs/rocm-opencl-runtime/files/rocm-opencl-runtime-3.0.0-change-install-location.patch
259 +++ /dev/null
260 @@ -1,147 +0,0 @@
261 ---- a/CMakeLists.txt 2019-12-28 09:34:17.470030419 +0100
262 -+++ b/CMakeLists.txt 2019-12-28 09:32:14.939030886 +0100
263 -@@ -21,12 +21,26 @@
264 -
265 - project(rocm-opencl)
266 -
267 -+include (GNUInstallDirs)
268 -+
269 - set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake" "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
270 - set(OPENCL_ICD_LOADER_HEADERS_DIR "${CMAKE_CURRENT_SOURCE_DIR}/api/opencl/khronos/headers/opencl2.2" CACHE PATH "")
271 -
272 - find_package(ROCT REQUIRED)
273 - find_package(ROCR REQUIRED)
274 -
275 -+find_package(LLVM REQUIRED CONFIG PATHS ${LLVM_DIR} "/opt/rocm/llvm" NO_DEFAULT_PATH)
276 -+set(USE_COMGR_LIBRARY "yes")
277 -+find_package(amd_comgr REQUIRED CONFIG)
278 -+add_definitions(-DUSE_COMGR_LIBRARY)
279 -+FOREACH(DIR ${LLVM_INCLUDE_DIRS})
280 -+ include_directories("${DIR}")
281 -+ include_directories("${DIR}/clang")
282 -+ include_directories("${DIR}/lld")
283 -+ # TODO: move AMDGPU.h header to include folder
284 -+ include_directories("${DIR}/llvm/Target/AMDGPU")
285 -+ENDFOREACH()
286 -+
287 - # FIXME: Remove following if block after enabling COMGR by default
288 - if (${USE_COMGR_LIBRARY} STREQUAL "no")
289 - set(LLVM_INCLUDE_TESTS OFF CACHE BOOL "")
290 -@@ -39,29 +53,19 @@
291 - # override default option value in library and driver
292 - set(GENERIC_IS_ZERO ON CACHE BOOL ON FORCE)
293 -
294 -- add_subdirectory(compiler/llvm EXCLUDE_FROM_ALL)
295 --
296 -- find_package(LLVM REQUIRED CONFIG PATHS ${CMAKE_BINARY_DIR}/compiler/llvm NO_DEFAULT_PATH)
297 -+ find_package(LLVM REQUIRED CONFIG PATHS ${LLVM_DIR} "/opt/rocm/llvm" NO_DEFAULT_PATH)
298 -
299 - list(APPEND CMAKE_MODULE_PATH "${LLVM_CMAKE_DIR}")
300 - include(AddLLVM)
301 -
302 - add_definitions(${LLVM_DEFINITIONS})
303 -- # TODO: add find_package for Clang and lld, and also use LLVM/Clang variables got from their config
304 -- include_directories(${CMAKE_SOURCE_DIR}/compiler/llvm/tools/clang/include)
305 -- include_directories(${CMAKE_BINARY_DIR}/compiler/llvm/tools/clang/include)
306 -- include_directories(${CMAKE_SOURCE_DIR}/compiler/llvm/tools/lld/include)
307 --
308 -- # TODO: move AMDGPU.h header to include folder
309 -- include_directories(${CMAKE_SOURCE_DIR}/compiler/llvm/lib/Target/AMDGPU)
310 -- include_directories(${CMAKE_BINARY_DIR}/compiler/llvm/lib/Target/AMDGPU)
311 -
312 - set(BUILD_HC_LIB OFF CACHE BOOL "")
313 - set(ROCM_DEVICELIB_INCLUDE_TESTS OFF CACHE BOOL "")
314 - set(AMDGCN_TARGETS_LIB_LIST "AMDGCN_LIB_TARGETS")
315 - set(AMDGCN_TARGETS_LIB_DEPS "AMDGCN_DEP_TARGETS")
316 - set(AMDGPU_TARGET_TRIPLE "amdgcn-amd-amdhsa")
317 -- add_subdirectory(library/amdgcn EXCLUDE_FROM_ALL)
318 -+
319 - add_subdirectory(compiler/driver EXCLUDE_FROM_ALL)
320 -
321 - install(PROGRAMS $<TARGET_FILE:clang> $<TARGET_FILE:lld>
322 -@@ -77,22 +81,22 @@
323 - endforeach()
324 - endif() # if (${USE_COMGR_LIBRARY} STREQUAL "no")
325 -
326 --if(${USE_COMGR_LIBRARY} MATCHES "yes")
327 -- set(COMGR_DYN_DLL "yes")
328 -- add_definitions(-DCOMGR_DYN_DLL)
329 -- add_definitions(-DUSE_COMGR_LIBRARY)
330 -- if( ${BUILD_HIP} MATCHES "yes")
331 -- add_subdirectory(api/hip)
332 -- endif()
333 --endif()
334 -+#if(${USE_COMGR_LIBRARY} MATCHES "yes")
335 -+# set(COMGR_DYN_DLL "yes")
336 -+# add_definitions(-DCOMGR_DYN_DLL)
337 -+# add_definitions(-DUSE_COMGR_LIBRARY)
338 -+# if( ${BUILD_HIP} MATCHES "yes")
339 -+# add_subdirectory(api/hip)
340 -+# endif()
341 -+#endif()
342 -
343 - add_subdirectory(api/opencl/amdocl)
344 - add_subdirectory(compiler/lib/loaders/elf/utils/libelf)
345 - add_subdirectory(runtime)
346 --add_subdirectory(tools/clinfo)
347 -+#add_subdirectory(tools/clinfo)
348 -
349 - set(BUILD_SHARED_LIBS "Build shared libs" ON)
350 --add_subdirectory(api/opencl/khronos/icd)
351 -+#add_subdirectory(api/opencl/khronos/icd)
352 -
353 - ###--- Packaging ------------------------------------------------------------###
354 -
355 -@@ -101,31 +105,31 @@
356 - rocm_setup_version( VERSION "2.0.0" )
357 -
358 - # MAIN package
359 --install(PROGRAMS $<TARGET_FILE:clinfo>
360 -- DESTINATION bin/x86_64
361 -- COMPONENT MAIN)
362 -+#install(PROGRAMS $<TARGET_FILE:clinfo>
363 -+# DESTINATION bin/x86_64
364 -+# COMPONENT MAIN)
365 - install(PROGRAMS $<TARGET_FILE:amdocl64>
366 -- DESTINATION lib/x86_64
367 -- COMPONENT MAIN)
368 --install(PROGRAMS $<TARGET_FILE:OpenCL>
369 -- DESTINATION lib/x86_64
370 -- COMPONENT MAIN)
371 --install(PROGRAMS $<TARGET_SONAME_FILE:OpenCL>
372 -- DESTINATION lib/x86_64
373 -+ DESTINATION lib64
374 - COMPONENT MAIN)
375 -+#install(PROGRAMS $<TARGET_FILE:OpenCL>
376 -+# DESTINATION lib/x86_64
377 -+# COMPONENT MAIN)
378 -+#install(PROGRAMS $<TARGET_SONAME_FILE:OpenCL>
379 -+# DESTINATION lib/x86_64
380 -+# COMPONENT MAIN)
381 -
382 - # DEV package
383 --install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/api/opencl/khronos/headers/opencl2.2/CL"
384 -- DESTINATION include
385 -- COMPONENT DEV
386 -- USE_SOURCE_PERMISSIONS
387 -- PATTERN cl_d3d10.h EXCLUDE
388 -- PATTERN cl_d3d11.h EXCLUDE
389 -- PATTERN cl_dx9_media_sharing.h EXCLUDE
390 -- PATTERN cl_egl.h EXCLUDE)
391 --install(PROGRAMS $<TARGET_LINKER_FILE:OpenCL>
392 -- DESTINATION lib/x86_64
393 -- COMPONENT DEV)
394 -+#install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/api/opencl/khronos/headers/opencl2.2/CL"
395 -+# DESTINATION include
396 -+# COMPONENT DEV
397 -+# USE_SOURCE_PERMISSIONS
398 -+# PATTERN cl_d3d10.h EXCLUDE
399 -+# PATTERN cl_d3d11.h EXCLUDE
400 -+# PATTERN cl_dx9_media_sharing.h EXCLUDE
401 -+# PATTERN cl_egl.h EXCLUDE)
402 -+#install(PROGRAMS $<TARGET_LINKER_FILE:OpenCL>
403 -+# DESTINATION lib/x86_64
404 -+# COMPONENT DEV)
405 -
406 - # Generic CPACK variables
407 - set(CPACK_GENERATOR "DEB;RPM" CACHE STRING "Default packaging generators")
408
409 diff --git a/dev-libs/rocm-opencl-runtime/files/rocm-opencl-runtime-3.5.0-amdocl64icd.patch b/dev-libs/rocm-opencl-runtime/files/rocm-opencl-runtime-3.5.0-amdocl64icd.patch
410 deleted file mode 100644
411 index dadf212d3d4..00000000000
412 --- a/dev-libs/rocm-opencl-runtime/files/rocm-opencl-runtime-3.5.0-amdocl64icd.patch
413 +++ /dev/null
414 @@ -1,11 +0,0 @@
415 ---- a/amdocl/CMakeLists.txt 2020-06-07 14:38:38.827042792 +0200
416 -+++ b/amdocl/CMakeLists.txt 2020-06-07 14:38:27.505042835 +0200
417 -@@ -109,3 +109,8 @@
418 - find_package(Threads REQUIRED)
419 -
420 - target_link_libraries(amdocl64 amdrocclr_static Threads::Threads dl)
421 -+
422 -+file(GENERATE OUTPUT "${CMAKE_BINARY_DIR}/amdocl64.icd" CONTENT "$<TARGET_FILE_NAME:amdocl64>")
423 -+install(FILES "${CMAKE_BINARY_DIR}/amdocl64.icd" DESTINATION "${CMAKE_INSTALL_FULL_SYSCONFDIR}/OpenCL/vendors/")
424 -+
425 -+
426
427 diff --git a/dev-libs/rocm-opencl-runtime/files/rocm-opencl-runtime-3.5.0-change-install-location.patch b/dev-libs/rocm-opencl-runtime/files/rocm-opencl-runtime-3.5.0-change-install-location.patch
428 deleted file mode 100644
429 index 5de4804c7be..00000000000
430 --- a/dev-libs/rocm-opencl-runtime/files/rocm-opencl-runtime-3.5.0-change-install-location.patch
431 +++ /dev/null
432 @@ -1,77 +0,0 @@
433 ---- a/CMakeLists.txt 2020-06-07 13:41:57.205055768 +0200
434 -+++ b/CMakeLists.txt 2020-06-07 16:02:45.704023540 +0200
435 -@@ -10,12 +10,14 @@
436 - #example command:
437 - #cmake -DROCclr_DIR=/rocclr -DUSE_COMGR_LIBRARY=yes -DLIBROCclr_STATIC_DIR=/build ..
438 -
439 -+include (GNUInstallDirs)
440 -+
441 - set(OPENCL_ICD_LOADER_HEADERS_DIR "${CMAKE_CURRENT_SOURCE_DIR}/khronos/headers/opencl2.2" CACHE PATH "")
442 - set(BUILD_SHARED_LIBS "Build shared libs" ON)
443 -
444 - add_subdirectory(khronos/icd)
445 - add_subdirectory(amdocl)
446 --add_subdirectory(tools/clinfo)
447 -+#add_subdirectory(tools/clinfo)
448 - add_subdirectory(tools/cltrace)
449 -
450 - # get date information based on UTC
451 -@@ -45,34 +47,34 @@
452 - ###--- Packaging ------------------------------------------------------------###
453 -
454 - # MAIN package
455 --install(PROGRAMS $<TARGET_FILE:clinfo>
456 -- DESTINATION bin
457 -- COMPONENT MAIN)
458 --install(PROGRAMS $<TARGET_FILE:cltrace>
459 -- DESTINATION lib
460 -- COMPONENT MAIN)
461 -+#install(PROGRAMS $<TARGET_FILE:clinfo>
462 -+# DESTINATION bin
463 -+# COMPONENT MAIN)
464 -+#install(PROGRAMS $<TARGET_FILE:cltrace>
465 -+# DESTINATION lib64
466 -+# COMPONENT MAIN)
467 - install(PROGRAMS $<TARGET_FILE:amdocl64>
468 -- DESTINATION lib
469 -- COMPONENT MAIN)
470 --install(PROGRAMS $<TARGET_FILE:OpenCL>
471 -- DESTINATION lib
472 -- COMPONENT MAIN)
473 --install(PROGRAMS $<TARGET_SONAME_FILE:OpenCL>
474 -- DESTINATION lib
475 -+ DESTINATION lib64
476 - COMPONENT MAIN)
477 -+#install(PROGRAMS $<TARGET_FILE:OpenCL>
478 -+# DESTINATION lib
479 -+# COMPONENT MAIN)
480 -+#install(PROGRAMS $<TARGET_SONAME_FILE:OpenCL>
481 -+# DESTINATION lib
482 -+# COMPONENT MAIN)
483 -
484 - # DEV package
485 --install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/khronos/headers/opencl2.2/CL"
486 -- DESTINATION include
487 -- COMPONENT DEV
488 -- USE_SOURCE_PERMISSIONS
489 -- PATTERN cl_d3d10.h EXCLUDE
490 -- PATTERN cl_d3d11.h EXCLUDE
491 -- PATTERN cl_dx9_media_sharing.h EXCLUDE
492 -- PATTERN cl_egl.h EXCLUDE)
493 --install(PROGRAMS $<TARGET_LINKER_FILE:OpenCL>
494 -- DESTINATION lib
495 -- COMPONENT DEV)
496 -+#install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/khronos/headers/opencl2.2/CL"
497 -+# DESTINATION include
498 -+# COMPONENT DEV
499 -+# USE_SOURCE_PERMISSIONS
500 -+# PATTERN cl_d3d10.h EXCLUDE
501 -+# PATTERN cl_d3d11.h EXCLUDE
502 -+# PATTERN cl_dx9_media_sharing.h EXCLUDE
503 -+# PATTERN cl_egl.h EXCLUDE)
504 -+#install(PROGRAMS $<TARGET_LINKER_FILE:OpenCL>
505 -+# DESTINATION lib
506 -+# COMPONENT DEV)
507 -
508 - #############################
509 - # Packaging steps