After upgrading from CUDA 10.2 to CUDA 11.5 I am unable to debug CUDA C code compiled in release, while CUDA C code compiled in debug can still be debugged.
I am using the integration of CUDA development in VS 2017
CodePudding user response:
After a while I found the problem:
New version of CUDA VisualStudio integration adds the new property "Debug Information Format" that didn't exist in version 10.2
This new property must be set to "Program Database" that adds the /Zi switch
In the file "CUDA 10.2.props", this switch was set fixed for both debug and release configurations.