Re: [CMake] FindCUDA Separable Compilation and cublas_device

2017-11-03 Thread Jamil Appa
Hi Robert Find attached a test case that reproduces the error. Jamil On Fri, 3 Nov 2017 at 21:00 Jamil Appa wrote: > Hi Robert > >I will put a minimal case together using one of the CUDA samples and > sent it through for testing with the new cmake support. > >On your second point, C

Re: [CMake] FindCUDA Separable Compilation and cublas_device

2017-11-03 Thread Jamil Appa
Hi Robert I will put a minimal case together using one of the CUDA samples and sent it through for testing with the new cmake support. On your second point, CUDA_CUBLAS_LIBRARIES should be empty if no cublas libraries are present so that use case should be automatically handled unless I am

Re: [CMake] FindCUDA Separable Compilation and cublas_device

2017-11-03 Thread Robert Maynard
HI Jamil, If you are interested in submitting a fix I can review, but I would like to also make sure that this issue doesn't exist inside the new cmake support for CUDA as a first class language. Can you produce a minimal test case that we can rework to use the new support and add to CMake's test

Re: [CMake] FindCUDA Separable Compilation and cublas_device

2017-11-03 Thread Jamil Appa
Hi Robert I am using CUDA_ADD_CUBLAS_TO_TARGET but the error happens during the prelink phase when using separable compilation. (nvcc -dlink phase) My guess is that Nvidia have not included cublas_device.a in their dlink phase as you don't have to provide any other libraries. I have asked th

Re: [CMake] FindCUDA Separable Compilation and cublas_device

2017-11-02 Thread Robert Maynard
Hi, Have you tried using the 'CUDA_ADD_CUBLAS_TO_TARGET' command on the target that has FindCUDA separable compilation enabled? On Wed, Nov 1, 2017 at 11:16 AM, Jamil Appa wrote: > Hi > >When using FindCUDA with separable compilation combined with device > code that uses cublas_device I get

[CMake] FindCUDA Separable Compilation and cublas_device

2017-11-01 Thread Jamil Appa
Hi When using FindCUDA with separable compilation combined with device code that uses cublas_device I get missing symbols when linking the intermediate file at line 1758 FindCUDA.cmake If I change line 1758