Skip to content

Conversation

@echuraev
Copy link
Contributor

@echuraev echuraev commented Mar 4, 2024

The first fix related to the problem when we build TVM with USE_CLML option and OpenCL header files were not found in the system. The second fix is for building CLML graph executor in Android build. find_library on MacOS is looking for libraries with dylib extension. This is why OpenCL libraries from CLML SDK were not found. To fix this problem we specify paths to the libraries manually in case if they were not found by find_library.

cc: @srkreddy1238

@echuraev echuraev requested a review from srkreddy1238 March 4, 2024 07:42
@echuraev
Copy link
Contributor Author

echuraev commented Mar 4, 2024

@tvm-bot rerun

2 similar comments
@echuraev
Copy link
Contributor Author

echuraev commented Mar 4, 2024

@tvm-bot rerun

@echuraev
Copy link
Contributor Author

echuraev commented Mar 5, 2024

@tvm-bot rerun

The first fix related to the problem when we build TVM with `USE_CLML`
option and OpenCL header files were not found in the system.
The second fix is for building CLML graph executor in Android build.
`find_library` on MacOS is looking for libraries with `dylib`
extension.  This is why OpenCL libraries from CLML SDK were not found.
To fix this problem we specify paths to the libraries manually in case
if they were not found by `find_library`.
@echuraev echuraev force-pushed the echuraev/fix_clml_build_on_macos branch from 56ac4bd to 5623f01 Compare March 11, 2024 07:34
@echuraev
Copy link
Contributor Author

@srkreddy1238 CI is green. Could you please review this PR?
cc: @masahi

@tqchen tqchen merged commit 7641c6e into apache:main Mar 19, 2024
thaisacs pushed a commit to thaisacs/tvm that referenced this pull request Apr 3, 2024
The first fix related to the problem when we build TVM with `USE_CLML`
option and OpenCL header files were not found in the system.
The second fix is for building CLML graph executor in Android build.
`find_library` on MacOS is looking for libraries with `dylib`
extension.  This is why OpenCL libraries from CLML SDK were not found.
To fix this problem we specify paths to the libraries manually in case
if they were not found by `find_library`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants