mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-05 02:04:07 +08:00
Disable more NVCC warnings.
The 2979 warning is yet another "calling a __host__ function from a __host__ device__ function. Although we probably should eventually address these, they are flooding the logs. Most of these are harmless since we only call the original from the host. In cases where these are actually called from device, an error is generated instead anyways. The 2977 warning is a bit strange - although the warning suggests the `__device__` annotation is ignored, this doesn't actually seem to be the case. Without the `__device__` declarations, the kernel actually fails to run when attempting to construct such objects. Again, these warnings are flooding the logs, so disabling for now.
This commit is contained in:
parent
afa616bc9e
commit
86c0decc48
@ -94,6 +94,12 @@
|
|||||||
#pragma diag_suppress 2735
|
#pragma diag_suppress 2735
|
||||||
#pragma diag_suppress 2737
|
#pragma diag_suppress 2737
|
||||||
#pragma diag_suppress 2739
|
#pragma diag_suppress 2739
|
||||||
|
#pragma diag_suppress 2979
|
||||||
|
// Disable the "// __device__ annotation is ignored on a function(...) that is
|
||||||
|
// explicitly defaulted on its first declaration" message.
|
||||||
|
// The __device__ annotation seems to actually be needed in some cases,
|
||||||
|
// otherwise resulting in kernel runtime errors.
|
||||||
|
#pragma diag_suppress 2977
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user