如何查找和禁用特定的 NVCC 警告?
How to find and disable specific NVCC warning?
特定警告的 NVCC 代码在哪里列出?
正在查看其他问题,例如 this one gives the answer to use -Xcudafe "--diag_suppress=xxx
to suppress warning "xxx", and links to a list of possible warnings here。
但是,当我收到警告时
/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
我在 list. Can someone point me to the page where it is, so I can find the code/name of it? I did not find it in the documentation for NVCC 中找不到该类型。
可以使用以下标志抑制此特定警告:
-Xcudafe --diag_suppress=esa_on_defaulted_function_ignored
您可以传递
--display_error_number
标记到 NVCC,并获取该错误的编号。然后你可以禁用它:
-Xcudafe --diag_suppress=1234
或任何错误编号。
特定警告的 NVCC 代码在哪里列出?
正在查看其他问题,例如 this one gives the answer to use -Xcudafe "--diag_suppress=xxx
to suppress warning "xxx", and links to a list of possible warnings here。
但是,当我收到警告时
/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
我在 list. Can someone point me to the page where it is, so I can find the code/name of it? I did not find it in the documentation for NVCC 中找不到该类型。
可以使用以下标志抑制此特定警告:
-Xcudafe --diag_suppress=esa_on_defaulted_function_ignored
您可以传递
--display_error_number
标记到 NVCC,并获取该错误的编号。然后你可以禁用它:
-Xcudafe --diag_suppress=1234
或任何错误编号。