rebug | It 's like your component has a HUD | Frontend Framework library
kandi X-RAY | rebug Summary
kandi X-RAY | rebug Summary
It's like your component has a HUD
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of rebug
rebug Key Features
rebug Examples and Code Snippets
Community Discussions
Trending Discussions on rebug
QUESTION
I've had a bit of a fight with CMake lately trying to get it to generate project files for Debug and Release targets on different platforms involving Cuda. The Cuda version I'm using is 9.1 on Windows and Linux. CMake version is 3.9 on Windows and 3.10 on Linux.
The problem is actually simple, because I can generate the builds on Windows if nvcc gets passed the "-DEBUG"
flag correctly. However, I cannot seem to pass the flag correctly by configuration automatically. I tried using CMAKE_NVCC_FLAGS_CONFIG
, CMAKE_CXX_FLAGS_CONFIG
with CUDA_PROPAGATE_HOST_FLAGS
set to ON/OFF
, switching CUDA_HOST_COMPILATION_CPP
to ON/OFF
did not help either. Setting the flag using expression generators to set directory properties using set_directory_property
, or as an option to cuda_add_executable
also did not work.
Here's the gist of my cmake script:
...ANSWER
Answered 2018-Feb-13 at 10:57I have no knowledge of CUDA/NVCC, but looking at the documentation of FindCUDA
, here are a couple of things you can try:
- Pass Debug flags through
CMAKE_C_FLAGS_DEBUG
, because the documentation ofCUDA_HOST_COMPILER
states that by default,CMAKE_C_COMPILER
is used, notCMAKE_CXX_COMPILER
, - Pass Debug flags through
cuda_add_executable()
: the documentation indicates that it callscuda_wrap_srcs()
where you can pass specific flags withOPTIONS DEBUG ...
Hope this helps.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install rebug
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page