Skip to content

Commit

Permalink
Workaround GCC 13 issue with empty histogram decoder op (#2252)
Browse files Browse the repository at this point in the history
* Workaround GCC 13 issue

* Update cub/cub/device/dispatch/dispatch_histogram.cuh

Co-authored-by: Michael Schellenberger Costa <[email protected]>

---------

Co-authored-by: Michael Schellenberger Costa <[email protected]>
  • Loading branch information
bernhardmgruber and miscco committed Aug 19, 2024
1 parent ba9e9bb commit 51c1b22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cub/cub/device/dispatch/dispatch_histogram.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ public:
{
// GCC 14 rightfully warns that when a value-initialized array of this struct is copied using memcpy, uninitialized
// bytes may be accessed. To avoid this, we add a dummy member, so value initialization actually initializes the memory.
#if defined(_CCCL_COMPILER_GCC) && __GNUC__ == 14
#if defined(_CCCL_COMPILER_GCC) && __GNUC__ >= 13
char dummy;
#endif

Expand Down

0 comments on commit 51c1b22

Please sign in to comment.