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 #189 from NVIDIA/bugfix/nv_pragma
Browse files Browse the repository at this point in the history
Fix upstream test warnings with /s/diag_suppress/nv_diag_suppress/
  • Loading branch information
wmaxey authored Jul 27, 2021
2 parents 43d3f2a + 73c3b58 commit 6fcb968
Show file tree
Hide file tree
Showing 15 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .upstream-tests/test/cuda/barrier_native_handle.pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

// UNSUPPORTED: pre-sm-70

#pragma diag_suppress static_var_with_dynamic_init
#pragma diag_suppress set_but_not_used
#pragma nv_diag_suppress static_var_with_dynamic_init
#pragma nv_diag_suppress set_but_not_used

#include <cuda/barrier>

Expand Down
4 changes: 2 additions & 2 deletions .upstream-tests/test/cuda/pipeline_arrive_on.pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

// UNSUPPORTED: pre-sm-70

#pragma diag_suppress static_var_with_dynamic_init
#pragma diag_suppress declared_but_not_referenced
#pragma nv_diag_suppress static_var_with_dynamic_init
#pragma nv_diag_suppress declared_but_not_referenced

#include <cuda_pipeline.h>
#include <cuda/barrier>
Expand Down
4 changes: 2 additions & 2 deletions .upstream-tests/test/cuda/pipeline_arrive_on_abi_v2.pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

#define _LIBCUDACXX_CUDA_ABI_VERSION 2

#pragma diag_suppress static_var_with_dynamic_init
#pragma diag_suppress declared_but_not_referenced
#pragma nv_diag_suppress static_var_with_dynamic_init
#pragma nv_diag_suppress declared_but_not_referenced

#include <cuda_pipeline.h>
#include <cuda/barrier>
Expand Down
2 changes: 1 addition & 1 deletion .upstream-tests/test/libcxx/libcpp_alignof.pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <cuda/std/type_traits>
#include "test_macros.h"

#pragma diag_suppress cuda_demote_unsupported_floating_point
#pragma nv_diag_suppress cuda_demote_unsupported_floating_point

template <class T>
__host__ __device__
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#endif // __CUDACC_RTC__
#include "test_macros.h"

#pragma diag_suppress cuda_demote_unsupported_floating_point
#pragma nv_diag_suppress cuda_demote_unsupported_floating_point

int main(int, char**)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#include <cuda/std/utility> // for cuda::std::move
#include <cuda/std/cassert>

#pragma diag_suppress set_but_not_used
#pragma nv_diag_suppress set_but_not_used

struct NonCopyable {
__host__ __device__
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "test_macros.h"
// #include "type_id.h"

#pragma diag_suppress set_but_not_used
#pragma nv_diag_suppress set_but_not_used

///////////////////////////////////////////////////////////////////////////////
// CALLABLE TEST TYPES
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <cuda/std/type_traits>
#include "test_macros.h"

#pragma diag_suppress cuda_demote_unsupported_floating_point
#pragma nv_diag_suppress cuda_demote_unsupported_floating_point

template <class T>
__host__ __device__
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <cuda/std/cstddef> // for cuda::std::nullptr_t
#include "test_macros.h"

#pragma diag_suppress cuda_demote_unsupported_floating_point
#pragma nv_diag_suppress cuda_demote_unsupported_floating_point

template <class T>
__host__ __device__
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#include "test_macros.h"

#pragma diag_suppress cuda_demote_unsupported_floating_point
#pragma nv_diag_suppress cuda_demote_unsupported_floating_point

template <class T>
__host__ __device__
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <cuda/std/cstddef> // for cuda::std::nullptr_t
#include "test_macros.h"

#pragma diag_suppress cuda_demote_unsupported_floating_point
#pragma nv_diag_suppress cuda_demote_unsupported_floating_point

template <class T>
__host__ __device__
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#define LIBCPP11_STATIC_ASSERT(...) ((void)0)
#endif

#pragma diag_suppress declared_but_not_referenced
#pragma nv_diag_suppress declared_but_not_referenced

struct A
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#pragma GCC diagnostic ignored "-Wformat-zero-length"
#endif

#pragma diag_suppress set_but_not_used
#pragma nv_diag_suppress set_but_not_used

int main(int, char**)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include "test_macros.h"

#pragma diag_suppress set_but_not_used
#pragma nv_diag_suppress set_but_not_used

int main(int, char**)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include "test_macros.h"

#pragma diag_suppress set_but_not_used
#pragma nv_diag_suppress set_but_not_used

int main(int, char**)
{
Expand Down

0 comments on commit 6fcb968

Please sign in to comment.