-
-
Notifications
You must be signed in to change notification settings - Fork 814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'--device-debug (-G)' overrides '--generate-line-info (-lineinfo)' in nvcc #5777
Comments
Can we turn on --device-debug for debug mode and --generate-line-info for releasedbg mode? The first option will turn off optimization while the second won't. https://nanxiao.me/en/dont-use-g-compile-option-for-profiling-cuda-programs/ seems -lineinfo is made for profiling needs. |
那就只能 symbols 里面同时去掉 -G/-lineinfo,只保留 -g 。。然后 在 module/rules 里面分别对 debug/releasedbg 单独加 |
好主意。我注意到 |
Good idea. I noticed that |
也可以 |
OK |
Signed-off-by: Aurorabili <[email protected]>
Xmake 版本
2.9.6
操作系统版本和架构
Ubuntu 22.04, Linux Kernel 5.14.0-427.31.1.el9_4.x86_64
描述问题
使用
xmake create -l cuda
创建默认 cuda 项目并在mode.debug
下构建得到 nvcc 警告:期待的结果
在
mode.debug
下仅包含--device-debug (-G)
选项。工程配置
附加信息和错误日志
console log
compile_commands.json
The text was updated successfully, but these errors were encountered: