Re: [CMake] FindCUDA fails to find libcuda.so

2013-05-01 Thread Robert Maynard
It looks like you used the ubuntu cuda package which installs the cuda library to a directory that FindCUDA wasn't expecting. I think we can extend FindCUDA to also use x86_64-linux-gnu as a valid directory to search for libcuda. can you submit a bug on mantis for this, so it doesn't get

Re: [CMake] FindCUDA fails to find libcuda.so

2013-05-01 Thread Marcel Loose
Hi Robert, I created an issue for this in Mantis: http://public.kitware.com/Bug/view.php?id=14122 Best regards, Marcel Loose. On 01/05/13 15:09, Robert Maynard wrote: It looks like you used the ubuntu cuda package which installs the cuda library to a directory that FindCUDA wasn't

Re: [CMake] FindCUDA fails to find libcuda.so

2013-05-01 Thread Robert Maynard
Thank you. On Wed, May 1, 2013 at 11:09 AM, Marcel Loose lo...@astron.nl wrote: Hi Robert, I created an issue for this in Mantis: http://public.kitware.com/Bug/** view.php?id=14122 http://public.kitware.com/Bug/view.php?id=14122 Best regards, Marcel Loose. On 01/05/13 15:09, Robert

Re: [CMake] FindCUDA fails to find libcuda.so

2013-04-30 Thread Marcel Loose
Here are the results on my Ubuntu 12.10 system: $ cmake --debug-output .. Running with debug output on. -- The C compiler identification is GNU 4.7.2 Called from: [2] /usr/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake [1] /home/marcel/temp/cmake/cuda/CMakeLists.txt

[CMake] FindCUDA fails to find libcuda.so

2013-04-29 Thread Marcel Loose
Hi all, I noticed that FindCUDA.cmake fails to locate libcuda.so on at least two different platforms: Ubuntu 12.10 and CentOS 6.3 using Cluster Manager v5.2. I can persuade FindCUDA.cmake to search for this library by explicitly setting the environment variable CUDA_LIB_PATH, and then it

Re: [CMake] FindCUDA fails to find libcuda.so

2013-04-29 Thread Robert Maynard
Can you provide what Cuda version FindCuda is failing to find, and where Cluster Manager is installing the CUDA toolkit and library? On Mon, Apr 29, 2013 at 7:38 AM, Marcel Loose lo...@astron.nl wrote: Hi all, I noticed that FindCUDA.cmake fails to locate libcuda.so on at least two different

Re: [CMake] FindCUDA fails to find libcuda.so

2013-04-29 Thread Marcel Loose
Hi, It fails to find CUDA 5.0. See below. $ env | grep CUDA CUDA_PATH=/cm/shared/apps/cuda50/toolkit/5.0.35 CUDA_INC_PATH=/cm/shared/apps/cuda50/toolkit/5.0.35 CUDA_SDK=/cm/shared/apps/cuda50/sdk/5.0.35 CUDA_CACHE_DISABLE=1 CUDA_INSTALL_PATH=/cm/shared/apps/cuda50/toolkit/5.0.35

Re: [CMake] FindCUDA fails to find libcuda.so

2013-04-29 Thread Robert Maynard
You have a nonstandard install path that will require you to use CUDA_PATH / CUDA_BIN_PATH and CUDA_LIB_PATH. On Mon, Apr 29, 2013 at 10:10 AM, Marcel Loose lo...@astron.nl wrote: Hi, It fails to find CUDA 5.0. See below. $ env | grep CUDA CUDA_PATH=/cm/shared/apps/cuda50/toolkit/5.0.35

Re: [CMake] FindCUDA fails to find libcuda.so

2013-04-29 Thread Marcel Loose
Hi Robert, I agree that on the CentOS machine the install paths are non-standard. For the Ubuntu system, on the other hand, I have to disagree with that statement. It is a *standard* Ubuntu 12.10 system, so IMHO FindCUDA.cmake should be able to locate libcuda.so on that system. Regards,

Re: [CMake] FindCUDA fails to find libcuda.so

2013-04-29 Thread Robert Maynard
I have had no problem with Ubuntu 12.10 and Cuda 5; findCuda is able to find cuda in /usr/lib. Can you run CMake --debug-output output enable and see where findCuda is searching? On Mon, Apr 29, 2013 at 11:52 AM, Marcel Loose lo...@astron.nl wrote: Hi Robert, I agree that on the CentOS