Skip to content

Commit

Permalink
Initialize padding member to silence warning.
Browse files Browse the repository at this point in the history
Fixes NVIDIA#419 and gpuCI gcc10 builds.
  • Loading branch information
alliepiper committed Jan 17, 2022
1 parent 66e2be6 commit f89222a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cub/iterator/discard_output_iterator.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private:

#if defined(_WIN32) || !defined(_WIN64)
// Workaround for win32 parameter-passing bug (ulonglong2 argmin DeviceReduce)
OffsetT pad[CUB_MAX(1, (16 / sizeof(OffsetT) - 1))];
OffsetT pad[CUB_MAX(1, (16 / sizeof(OffsetT) - 1))] = {};
#endif

public:
Expand Down

0 comments on commit f89222a

Please sign in to comment.