-
Notifications
You must be signed in to change notification settings - Fork 95
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
Linker problem with cuBLAS build in Linux #74
Comments
I had the same problem, I solved it with the following changes to a single CMake file. The repo path/Gpufit/MakeLists.txt files was edited as follows:
I had two problems, the cublas libraries weren't in the CUDA_TOOLKIT_ROOT_DIR, and additional libraries were required. The above edit isn't the most robust, but it worked for my platform. Looking how to make this more robust I found the FIND_CUDA module has been deprecated. So someone should really rewrite the repo path/Gpufit/MakeLists.txt file to make use of the native CUDA support in CMake >3.10 now. |
After more research the native CMake CUDA support doesn't really have as many features as the deprecated FIND_CUDA, which is probably why it isn't being used. I updated the above to the slightly more robust:
|
I checked it and it may depend on the CUDA version. It may require some additional CMake code and testing. I'll come back to it later. |
I ran into problems building on a fresh install of Linux (Ubuntu 18.04) when trying to build with the cuBLAS library. Details are
OS: Ubuntu 18.04
GCC: 7.4.0
cmake: 3.14.3
Boost: 1.65.1
CUDA: 10.1.105-1
Nvidia Driver: 418.39-1
GPU: GTX1080ti
Gpufit: 12496a... Apr 12 16:11:54 2019
I used the following commands to build;
The build failed with the following statements...
I was able to eventually get around this (and subsequent) problem as follows;
(Note; I do not claim that this is the best way to solve the problem. It is merely what worked for me, and may be of assistance in addressing the actual problem).
Gpufit repository path/Gpufit/CMakeLists.txt
Gpufit repository path/Gpufit/examples/CMakeLists.txt
Gpufit repository path/Gpufit/Gpufit/examples/CMakeLists.txt
In each file, every instance of the line
was replaced with the following line:
The build directory was then erased
and the cmake command rerun
The build then succeeded.
As previously mentioned, I am not very familiar with the cmake machinery, so there may be a much better way to fix this problem than this workaround. Hope it helps anyway.
The text was updated successfully, but these errors were encountered: