Notes |
|
(0038364)
|
Brad King
|
2015-03-30 16:42
|
|
One could set the CUDA_*_LIBRARY cache entries explicitly to refer to the static libraries. |
|
|
(0038366)
|
James Bigler
|
2015-03-30 17:01
|
|
I do have a pending change that enables this feature. I've been testing it and need to find some time to integrate it. |
|
|
(0038367)
|
Curtis Mahieu
|
2015-03-30 17:06
|
|
Im overriding the variable as a temporary solution, but i have to switch based on the OS as I can't see an easy way to get access to the /lib or /lib64 variable.
James, Thanks for the awesome Module! |
|
|
(0038368)
|
Curtis Mahieu
|
2015-03-30 19:39
|
|
I had some ordering wrong when i first tested my "work around" when i actually overrisde the library using this:
find_package(CUDA)
get_filename_component(CUDA_LIB_FOLDER ${CUDA_LIBRARIES} DIRECTORY)
unset(CUDA_LIBRARIES)
set(CUDA_LIBRARIES "${CUDA_LIB_FOLDER}/libcudart_static.a")
message("Using static lib: " ${CUDA_LIBRARIES})
i can see this in the build log:
Using static lib: /usr/local/cuda/lib/libcudart_static.a
But when i go to actually run the binary i get this message:
CUDA Device Query (Runtime API) version (CUDART static linking)
cudaGetDeviceCount returned 35
-> CUDA driver version is insufficient for CUDA runtime version
Result = FAIL
Process finished with exit code 1
NOTE: I just made a quick sample out of the deviceQuery CUDA sample source. |
|
|
(0038369)
|
Curtis Mahieu
|
2015-03-30 19:43
|
|
James,
Is there any way you could post / point me to you patch that has this support. I could at least then bundle it into the project Im working on. |
|
|
(0038375)
|
James Bigler
|
2015-03-31 15:04
|
|
I could give you a copy of the FindCUDA that has these changes, but there are a few other changes in there that would need to be removed to make it work for you.
Do you have the ability to use a custom FindCUDA? |
|
|
(0038376)
|
Curtis Mahieu
|
2015-03-31 15:24
|
|
yeah i can use a custom findCUDA. |
|
|
(0038377)
|
James Bigler
|
2015-03-31 16:20
|
|
|
|
(0038378)
|
Curtis Mahieu
|
2015-03-31 16:27
|
|
Awesome! Thanks!
Ill test it out today. |
|
|
(0038379)
|
Curtis Mahieu
|
2015-03-31 17:12
|
|
|
|
(0038380)
|
James Bigler
|
2015-03-31 17:16
|
|
What platforms have you tried? I developed this for Windows, Linux, and Mac. |
|
|
(0038381)
|
Curtis Mahieu
|
2015-03-31 18:44
(edited on: 2015-03-31 18:57) |
|
I tested it on Mac and Linux.
|
|
|
(0038394)
|
Brad King
|
2015-04-03 10:14
(edited on: 2015-04-03 10:15) |
|
|
|
(0040387)
|
Robert Maynard
|
2016-02-01 09:10
|
|
Closing resolved issues that have not been updated in more than 4 months. |
|