From 6e2808b78c71fb83ee851f15ac5cb85d5afded36 Mon Sep 17 00:00:00 2001 From: Michael Varvarin <55709728+MichaelVarvarin@users.noreply.github.com> Date: Tue, 26 Nov 2024 15:00:50 +0200 Subject: [PATCH] Suppress GCC warning about pointer to object conversion --- .../alpaka/kernel/TaskKernelGpuUniformCudaHipRt.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/alpaka/kernel/TaskKernelGpuUniformCudaHipRt.hpp b/include/alpaka/kernel/TaskKernelGpuUniformCudaHipRt.hpp index 959b8e338fa..c0d1c7e6a69 100644 --- a/include/alpaka/kernel/TaskKernelGpuUniformCudaHipRt.hpp +++ b/include/alpaka/kernel/TaskKernelGpuUniformCudaHipRt.hpp @@ -366,6 +366,13 @@ namespace alpaka { void const* kernelArgs[] = {&threadElemExtent, &task.m_kernelFnObj, &args...}; + // Suppress warning about pointer-to-object and pointer-to-function +# if defined(__GNUC__) + +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wconditionally-supported" +# endif + ALPAKA_UNIFORM_CUDA_HIP_RT_CHECK(TApi::launchCooperativeKernel( reinterpret_cast(kernelName), gridDim, @@ -373,6 +380,9 @@ namespace alpaka const_cast(kernelArgs), static_cast(blockSharedMemDynSizeBytes), queue.getNativeHandle())); +# if defined(__GNUC__) +# pragma GCC diagnostic pop +# endif } else {