Skip to content

Commit 423eeac

Browse files
committed
Suppress nvcc host/device diagnostic in multi_stream_allocations benchmark
The any_resource internals use __host__ __device__ functions that call shared_resource copy/move constructors which are __host__ only. This is safe because the benchmark factory functions are only called from host code.
1 parent 09cb70f commit 423eeac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cpp/benchmarks/multi_stream_allocations/multi_stream_allocations_bench.cu

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6+
// Suppress nvcc warning about __host__ shared_resource copy/move constructors called from
7+
// __host__ __device__ any_resource internals. These functions are only called from host code.
8+
#pragma nv_diag_suppress 20011
9+
610
#include <rmm/cuda_device.hpp>
711
#include <rmm/cuda_stream.hpp>
812
#include <rmm/cuda_stream_pool.hpp>

0 commit comments

Comments
 (0)