-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Providing -DOpenCL_LIBRARY=path/to/libOpenCL.so results in a compilation error #734
Comments
|
Also, .so.0.0 etc are not accepted |
rpath option looks broken: |
leads to other errors down the path |
I get compile error too with
But with different error message. The chipStar builds successfully (from scratch) on my machine with the following change: diff --git a/CMakeLists.txt b/CMakeLists.txt
index ff392f95..b4556104 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -68,12 +68,13 @@ endforeach()
if(NOT DEFINED OpenCL_LIBRARY)
message(STATUS "OpenCL_LIBRARY was not set. Searching for libOpenCL.so in LD_LIBRARY_PATH")
find_library(OpenCL_LIBRARY NAMES OpenCL PATHS ENV LD_LIBRARY_PATH ./ NO_CACHE)
- if(OpenCL_LIBRARY)
- get_filename_component(OpenCL_DIR ${OpenCL_LIBRARY} DIRECTORY CACHE)
- message(STATUS "Setting OpenCL_DIR to ${OpenCL_DIR}")
- else()
- message(STATUS "OpenCL not found")
- endif()
+endif()
+
+if(OpenCL_LIBRARY)
+ get_filename_component(OpenCL_DIR ${OpenCL_LIBRARY} DIRECTORY CACHE)
+ message(STATUS "Setting OpenCL_DIR to ${OpenCL_DIR}")
+else()
+ message(STATUS "OpenCL not found")
endif()
if(NOT DEFINED LevelZero_LIBRARY) This patch solves the broken |
@pvelesko can you confirm it fixes it? Can we create a PR of this and merge it in main? |
checking now
…On Thu, Dec 21, 2023 at 14:41 Pekka Jääskeläinen ***@***.***> wrote:
@pvelesko <https://github.com/pvelesko> can you confirm it fixes it? Can
we create a PR of this and merge it in main?
—
Reply to this email directly, view it on GitHub
<#734 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACCJBQM7V32W3OVYT7SAJETYKQU7ZAVCNFSM6AAAAABA55MSXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRWGE4DAOJQGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
The text was updated successfully, but these errors were encountered: