From 5920143d47ad4f7ecde47941e31ebff6bf0aea98 Mon Sep 17 00:00:00 2001 From: ngc92 <7938269+ngc92@users.noreply.github.com> Date: Fri, 10 May 2024 00:02:37 +0200 Subject: [PATCH] remove warning noise --- dev/cuda/common.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dev/cuda/common.h b/dev/cuda/common.h index 5da54fe..0c20798 100644 --- a/dev/cuda/common.h +++ b/dev/cuda/common.h @@ -71,7 +71,9 @@ int cuda_threads_per_SM = 0; // needed to calculate how many blocks to launch template struct alignas(16) Packed128 { - __device__ Packed128() = default; + // Note: = default implicitly generates a __device__ function, but explicitly + // adding __device__ causes a lot of warnings. + Packed128() = default; __device__ explicit Packed128(int4 bits) { static_assert(sizeof(bits) == sizeof(payload), "Size mismatch."); memcpy(&payload, &bits, sizeof(bits));