-
Notifications
You must be signed in to change notification settings - Fork 162
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
[CMake] Remove FindRoc* files #490
Conversation
Did you test to build this with CMake 1.13, the minimum version required by the root CMakeLists.txt? It occurred to me just now that older version of CMake may not be able to find these packages. |
It didn't occur to me to do this. I've now built the library (tests disabled), and it builds with this patch with 3.13. |
* Some files are deleted. * These files were not needed, but added potential for issues. * Eg. if HIP_PATH was not set, the shared library associated with the target would not be found.
* Some files are deleted. * These files were not needed, but added potential for issues. * Eg. if HIP_PATH was not set, the shared library associated with the target would not be found.
Description
This PR removes the files Findroc* to remove complexity. Additionally, it resolves an issue where HIP is not installed at the default location given by
HIP_PATH
. If the (as far as I now) undocumentedHIP_PATH
is not set, the build system (make, ninja) produces an error when the.so
file is not found in the expected location.The version in this PR seems to find the ROCm maths libraries by default and reduce the amount of CMake that we need to maintain.
The need for the files being deleted was not clear to me. Deleting them seemed like the most simple fix for the above issue, but we could also check the shared library exists and generate an error in the CMake instead.
Checklist
All Submissions
testrng.txt
lapackres.txt
rocblas_test.log