cuda - 如何查找和禁用特定的 NVCC 警告?
问题描述
特定警告的 NVCC 代码在哪里列出?
查看像这样的其他问题给出了-Xcudafe "--diag_suppress=xxx
用于抑制警告“xxx”的答案,并链接到此处的可能警告列表。
但是,当我收到警告时
/usr/include/eigen3/Eigen/src/Core/util/XprHelper.h(94): warning: __host__ annotation is ignored on a function("no_assignment_operator") that is explicitly defaulted on its first declaration
和
/usr/include/eigen3/Eigen/src/Core/util/XprHelper.h(94): warning: __device__ annotation is ignored on a function("no_assignment_operator") that is explicitly defaulted on its first declaration
解决方案
您可以将标志传递给 NVCC,而不是寻找警告的字符串代码
--display_error_number
,并获取该错误的编号。然后你可以禁用它:
-Xcudafe --diag_suppress=1234
或任何错误号。
推荐阅读
- javascript - 如果项目具有活动类别,则按顺序显示图像
- python - 我想检查opencv中的模板是否匹配
- javascript - 如何显示用户之前输入的建议输入值
- concatenation - Qlik sense concatenate 和 join 是水平合并表而不是垂直合并表
- javascript - 获取帖子请求有效,但 axios post 无效?
- amazon-web-services - 如何在主要 punity.de 上的 cloudflare 上提供静态前端,同时在 aws 上管理 api.punity.de 和其他服务
- jelastic - jelastic 自动垂直伸缩如何影响节点服务器?
- windows - 如何在我的 powershell 脚本上添加正确的正常运行时间
- android - 在flutter应用程序中使用firebase google登录后如何保存或保留要在我的设置页面中使用的数据
- arrays - VBA 在列中搜索数组并根据绑定到数组的值替换单元格值