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 code, building with -G
set takes an inordinately long time and still produces terrible debug info, so
we prefer to leave it off- but we still want Debug builds so that we can easily
debug CPU side code.)
Unfortunately by default the Nvidia CUDA plugin for Visual Studio sets -G by
default for debug builds. Disabling it requires the addition of
<GPUDebugInfo>false</GPUDebugInfo>
to the <CudaCompile> section of the .vcxproj file. I can't currently find any
way to do this through Cmake. Have I missed something obvious, or is this not a
supported feature?
Many thanks,
James Hancox
______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake