Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #171 from wmaxey/bugfix/chrono_pragma_diag
Browse files Browse the repository at this point in the history
Change long double warning pragma to use the new nv_diag_pragma

virtual: https://scbuilds4u/dvs/#/change/3019196339432407.1?eventType=Virtual
nvbug/3325140
  • Loading branch information
wmaxey authored Jul 15, 2021
2 parents e154fae + 40c8b45 commit 8bde5f9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion include/cuda/std/chrono
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@
// fashion; if you include this header, the diagnostic will be suppressed
// throughout the translation unit. The alternative is loosing (conforming)
// chrono user-defined literals; this seems like the lesser of two evils, so...
#pragma diag_suppress cuda_demote_unsupported_floating_point
#if defined(_LIBCUDACXX_COMPILER_NVCC)
# if (CUDART_VERSION >= 11050)
# pragma nv_diag_suppress cuda_demote_unsupported_floating_point
# else
# pragma diag_suppress cuda_demote_unsupported_floating_point
# endif
#endif

#include "detail/libcxx/include/chrono"

Expand Down

0 comments on commit 8bde5f9

Please sign in to comment.