diff options
author | Torsten Keßler | 2020-04-20 21:53:21 +0200 |
---|---|---|
committer | GitHub | 2020-04-20 19:53:21 +0000 |
commit | 5b66acde89c82186e9d6e62adac1701548eea099 (patch) | |
tree | a10b33dea80dc9116a3e3b36d93b756c3c1342c4 /install_vendor_file.patch | |
parent | 5b1ab2889a55f93c97c5655f19b7f59ca673ffe0 (diff) | |
download | aur-5b66acde89c82186e9d6e62adac1701548eea099.tar.gz |
[rocm-opencl-runtime] Add OpenCL/vendors, fix ld.so.conf (#101)
* Copy amdocl64.icd to /etc/OpenCL/vendors. Otherwise, clinfo doesn't
work.
* Change ld.so.conf to /opt/rocm/lib/x86_64 so that the runtime can
detect libamdocl64.so
Co-authored-by: Ranieri Althoff <1993083+ranisalt@users.noreply.github.com>
Diffstat (limited to 'install_vendor_file.patch')
-rw-r--r-- | install_vendor_file.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/install_vendor_file.patch b/install_vendor_file.patch new file mode 100644 index 000000000000..1a67f0f7d7ba --- /dev/null +++ b/install_vendor_file.patch @@ -0,0 +1,20 @@ +From 7c6726d975d54185d1318a112059f3e9ca5edf36 Mon Sep 17 00:00:00 2001 +From: Ranieri Althoff <1993083+ranisalt@users.noreply.github.com> +Date: Sat, 18 Apr 2020 18:02:58 +0000 +Subject: [PATCH] Install amdocl64.icd where ICD loader expects it + +--- + api/opencl/amdocl/CMakeLists.txt | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/api/opencl/amdocl/CMakeLists.txt b/api/opencl/amdocl/CMakeLists.txt +index e217110..2731a6a 100644 +--- rocm-opencl-runtime/api/opencl/amdocl/CMakeLists.txt ++++ rocm-opencl-runtime/api/opencl/amdocl/CMakeLists.txt +@@ -83,3 +83,6 @@ if(${USE_COMGR_LIBRARY} MATCHES "yes") + else() + target_link_libraries(amdocl64 opencl_driver oclelf pthread dl ${ROCT_LIBRARIES} ${ROCR_LIBRARIES}) + endif() ++ ++file(GENERATE OUTPUT "${CMAKE_BINARY_DIR}/amdocl64.icd" CONTENT "$<TARGET_FILE_NAME:amdocl64>") ++install(FILES "${CMAKE_BINARY_DIR}/amdocl64.icd" DESTINATION "${CMAKE_INSTALL_SYSCONFDIR}/OpenCL/vendors/") |