From 067064e9532ab4a88f44b22d2d409e3f0e4f23ee Mon Sep 17 00:00:00 2001 From: Allard Hendriksen Date: Fri, 28 Jul 2023 09:16:06 +0200 Subject: [PATCH] Replace diag_suppress by nv_diag_suppress [skip-tests] nvcc version 11 warns that diag_suppress is deprecated. Version 12 does not support it anymore. nv_diag_suppress works. --- .../docs/extended_api/synchronization_primitives/barrier.md | 2 +- .../extended_api/synchronization_primitives/barrier/init.md | 4 ++-- .../extended_api/synchronization_primitives/make_pipeline.md | 2 +- .../docs/extended_api/synchronization_primitives/pipeline.md | 2 +- .../synchronization_primitives/pipeline_producer_commit.md | 2 +- .../synchronization_primitives/pipeline_shared_state.md | 4 ++-- .../pipeline_shared_state/constructor.md | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/libcudacxx/docs/extended_api/synchronization_primitives/barrier.md b/libcudacxx/docs/extended_api/synchronization_primitives/barrier.md index dda51bfd3b..c20977c99b 100644 --- a/libcudacxx/docs/extended_api/synchronization_primitives/barrier.md +++ b/libcudacxx/docs/extended_api/synchronization_primitives/barrier.md @@ -34,7 +34,7 @@ warning: dynamic initialization is not supported for a function-scope static __shared__ variable within a __device__/__global__ function ``` -It can be silenced using `#pragma diag_suppress static_var_with_dynamic_init`. +It can be silenced using `#pragma nv_diag_suppress static_var_with_dynamic_init`. To properly initialize a `__shared__` `cuda::barrier`, use the [`cuda::barrier::init`] friend function. diff --git a/libcudacxx/docs/extended_api/synchronization_primitives/barrier/init.md b/libcudacxx/docs/extended_api/synchronization_primitives/barrier/init.md index 1b52023108..f2634daf53 100644 --- a/libcudacxx/docs/extended_api/synchronization_primitives/barrier/init.md +++ b/libcudacxx/docs/extended_api/synchronization_primitives/barrier/init.md @@ -36,7 +36,7 @@ warning: dynamic initialization is not supported for a function-scope static __shared__ variable within a __device__/__global__ function ``` -It can be silenced using `#pragma diag_suppress static_var_with_dynamic_init`. +It can be silenced using `#pragma nv_diag_suppress static_var_with_dynamic_init`. ## Example @@ -44,7 +44,7 @@ It can be silenced using `#pragma diag_suppress static_var_with_dynamic_init`. #include // Disables `pipeline_shared_state` initialization warning. -#pragma diag_suppress static_var_with_dynamic_init +#pragma nv_diag_suppress static_var_with_dynamic_init __global__ void example_kernel() { __shared__ cuda::barrier bar; diff --git a/libcudacxx/docs/extended_api/synchronization_primitives/make_pipeline.md b/libcudacxx/docs/extended_api/synchronization_primitives/make_pipeline.md index 26cd8a05c9..849ce7d6a0 100644 --- a/libcudacxx/docs/extended_api/synchronization_primitives/make_pipeline.md +++ b/libcudacxx/docs/extended_api/synchronization_primitives/make_pipeline.md @@ -88,7 +88,7 @@ A `cuda::pipeline` object. #include // Disables `pipeline_shared_state` initialization warning. -#pragma diag_suppress static_var_with_dynamic_init +#pragma nv_diag_suppress static_var_with_dynamic_init __global__ void example_kernel() { __shared__ cuda::pipeline_shared_state pss0; diff --git a/libcudacxx/docs/extended_api/synchronization_primitives/pipeline.md b/libcudacxx/docs/extended_api/synchronization_primitives/pipeline.md index ccb9697050..d729e15694 100644 --- a/libcudacxx/docs/extended_api/synchronization_primitives/pipeline.md +++ b/libcudacxx/docs/extended_api/synchronization_primitives/pipeline.md @@ -86,7 +86,7 @@ A thread role cannot change during the lifetime of the pipeline object. #include // Disables `pipeline_shared_state` initialization warning. -#pragma diag_suppress static_var_with_dynamic_init +#pragma nv_diag_suppress static_var_with_dynamic_init template __device__ void compute(T* ptr); diff --git a/libcudacxx/docs/extended_api/synchronization_primitives/pipeline_producer_commit.md b/libcudacxx/docs/extended_api/synchronization_primitives/pipeline_producer_commit.md index 2fb848bd07..842607ed35 100644 --- a/libcudacxx/docs/extended_api/synchronization_primitives/pipeline_producer_commit.md +++ b/libcudacxx/docs/extended_api/synchronization_primitives/pipeline_producer_commit.md @@ -35,7 +35,7 @@ If the pipeline is in a _quitted state_ (see [`cuda::pipeline::quit`]), the #include // Disables `barrier` initialization warning. -#pragma diag_suppress static_var_with_dynamic_init +#pragma nv_diag_suppress static_var_with_dynamic_init __global__ void example_kernel(cuda::std::uint64_t* global, cuda::std::size_t element_count) { diff --git a/libcudacxx/docs/extended_api/synchronization_primitives/pipeline_shared_state.md b/libcudacxx/docs/extended_api/synchronization_primitives/pipeline_shared_state.md index 9daba5fea6..a70689a0e4 100644 --- a/libcudacxx/docs/extended_api/synchronization_primitives/pipeline_shared_state.md +++ b/libcudacxx/docs/extended_api/synchronization_primitives/pipeline_shared_state.md @@ -47,7 +47,7 @@ warning: dynamic initialization is not supported for a function-scope static __shared__ variable within a __device__/__global__ function ``` -It can be silenced using `#pragma diag_suppress static_var_with_dynamic_init`. +It can be silenced using `#pragma nv_diag_suppress static_var_with_dynamic_init`. ## Example @@ -55,7 +55,7 @@ It can be silenced using `#pragma diag_suppress static_var_with_dynamic_init`. #include // Disables `pipeline_shared_state` initialization warning. -#pragma diag_suppress static_var_with_dynamic_init +#pragma nv_diag_suppress static_var_with_dynamic_init __global__ void example_kernel(char* device_buffer, char* sysmem_buffer) { // Allocate a 2 stage block scoped shared state in shared memory. diff --git a/libcudacxx/docs/extended_api/synchronization_primitives/pipeline_shared_state/constructor.md b/libcudacxx/docs/extended_api/synchronization_primitives/pipeline_shared_state/constructor.md index 0d802faebe..eddc173677 100644 --- a/libcudacxx/docs/extended_api/synchronization_primitives/pipeline_shared_state/constructor.md +++ b/libcudacxx/docs/extended_api/synchronization_primitives/pipeline_shared_state/constructor.md @@ -26,7 +26,7 @@ Construct a [`cuda::pipeline`] _shared state_ object. ```cuda #include -#pragma diag_suppress static_var_with_dynamic_init +#pragma nv_diag_suppress static_var_with_dynamic_init __global__ void example_kernel() { __shared__ cuda::pipeline_shared_state shared_state;