Skip to content

Commit

Permalink
Suppress sizeof-array-div warnings in thrust found by gcc-11 (#10840)
Browse files Browse the repository at this point in the history
`sizeof-array-div` is a new warning added in gcc-11 and thrust 1.15 will trigger it when a `T` type is a fixed size array. Nothing is wrong with the thrust logic, so we just suppress the warning while we wait on thrust 1.16

Authors:
  - Robert Maynard (https://github.com/robertmaynard)

Approvers:
  - Nghia Truong (https://github.com/ttnghia)
  - Conor Hoekstra (https://github.com/codereport)

URL: #10840
  • Loading branch information
robertmaynard authored May 13, 2022
1 parent 0802451 commit 6901b12
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cpp/src/io/text/multibyte_split.cu
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
* limitations under the License.
*/

// Can be removed once we use Thrust 1.16+
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wpragmas"
#pragma GCC diagnostic ignored "-Wsizeof-array-div"

#include <cudf/column/column.hpp>
#include <cudf/column/column_factories.hpp>
#include <cudf/detail/nvtx/ranges.hpp>
Expand All @@ -40,6 +45,8 @@
#include <cub/block/block_load.cuh>
#include <cub/block/block_scan.cuh>

#pragma GCC diagnostic pop

#include <memory>
#include <optional>

Expand Down

0 comments on commit 6901b12

Please sign in to comment.