remove warning noise

This commit is contained in:
ngc92 2024-05-10 00:02:37 +02:00
parent 691c1df969
commit 5920143d47

View file

@ -71,7 +71,9 @@ int cuda_threads_per_SM = 0; // needed to calculate how many blocks to launch
template<class ElementType>
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));