Re: [CMake] Missing _EXPORTS definition in CUDA host compilation

2017-06-20 Thread Hancox, James
To: Hancox, James <jhan...@tmvse.com> Cc: cmake@cmake.org Subject: Re: [CMake] Missing _EXPORTS definition in CUDA host compilation Hi James, In testing we have not been able to replicate the reported behavior. We are seeing that the .cu files inside a shared library have the correct export d

Re: [CMake] Missing _EXPORTS definition in CUDA host compilation

2017-06-20 Thread Hancox, James
of similar bug reports in the future. Thanks again, James -Original Message- From: Brad King [mailto:brad.k...@kitware.com] Sent: 20 June 2017 14:42 To: Hancox, James <jhan...@tmvse.com> Cc: Robert Maynard <robert.mayn...@kitware.com>; cmake@cmake.org Subject: Re: [CM

[CMake] No mechanism to set -Xcompiler options with Visual Studio CUDA integration?

2017-06-21 Thread Hancox, James
Hi all, I'm trying out the CMake 3.9.0-rc3 support for CUDA with Visual Studio generators*, and trying to port over an existing project that uses FindCUDA. I'm sure I'm missing something obvious, but I can't see any mechanism to set -Xcompiler flags. To be more explicit, I need to set /bigobj

Re: [CMake] No mechanism to set -Xcompiler options with Visual Studio CUDA integration?

2017-06-22 Thread Hancox, James
That's great news! I'll definitely try that out in the next RC. Thanks again for looking into this so quickly. James -Original Message- From: Brad King [mailto:brad.k...@kitware.com] Sent: 21 June 2017 19:30 To: Hancox, James <jhan...@tmvse.com> Cc: cmake@cmake.org; Robert M

Re: [CMake] No mechanism to set -Xcompiler options with Visual Studio CUDA integration?

2017-06-21 Thread Hancox, James
...@kitware.com] Sent: 21 June 2017 16:49 To: Hancox, James <jhan...@tmvse.com> Cc: cmake@cmake.org; Robert Maynard <robert.mayn...@kitware.com> Subject: Re: [CMake] No mechanism to set -Xcompiler options with Visual Studio CUDA integration? On 06/21/2017 09:08 AM, Hancox, James wrote: >

Re: [CMake] No mechanism to set -Xcompiler options with Visual Studio CUDA integration?

2017-06-23 Thread Hancox, James
at https://github.com/jameshancox/cmake_example_xcompiler , hope it helps. Cheers, James -Original Message- From: Brad King [mailto:brad.k...@kitware.com] Sent: 22 June 2017 15:06 To: Hancox, James <jhan...@tmvse.com> Cc: cmake@cmake.org; Robert Maynard <robert.mayn...@kitware.com> Subjec

[CMake] Missing _EXPORTS definition in CUDA host compilation

2017-06-16 Thread Hancox, James
Hi, I'm trying out the new CUDA support for Visual Studio generators in Cmake 3.9.0-rc3 (generator Visual Studio 12 2013 Win64), and I think I've found a bug. Our code defines some DLL-export functions in host code in a .cu file, but it seems that the usual _EXPORTS pre-processor definition is

[CMake] CUDA support- no way to set GPUDebugInfo to be False ?

2017-12-08 Thread Hancox, James
Hi, I'm working on porting an existing FindCUDA project over to using the new CMake built-in CUDA support, with Visual Studio 15.4.1, CUDA 9.0.176, and CMake 3.10.0. I am currently trying to find a way to disable the -G compilation flag for NVCC with Debug builds. (Due to the nature of our