Skip to content

Commit

Permalink
Work-around for gcc7 compile error on Centos7 (#7652)
Browse files Browse the repository at this point in the history
Closes #7650 

I was able to reproduce this with `nvidia/cuda:10.2-devel-centos7` docker image using gcc 7.5.0
After doing some googling and trial and error, I found just moving the offending line up one line outside the lambda in the source file gets past the error.

Authors:
  - David (@davidwendt)

Approvers:
  - Devavret Makkar (@devavret)
  - Nghia Truong (@ttnghia)
  - Mike Wilson (@hyperbolic2346)

URL: #7652
  • Loading branch information
davidwendt authored Mar 19, 2021
1 parent 8687182 commit 7086732
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ std::unique_ptr<column> make_strings_column(IndexPairIterator begin,
auto null_mask =
(null_count > 0) ? std::move(new_nulls.first) : rmm::device_buffer{0, stream, mr};

auto const avg_bytes_per_row = bytes / std::max(strings_count - null_count, 1);
// build chars column
std::unique_ptr<column> chars_column = [&] {
// use a character-parallel kernel for long string lengths
auto const avg_bytes_per_row = bytes / std::max(strings_count - null_count, 1);
if (avg_bytes_per_row > FACTORY_BYTES_PER_ROW_THRESHOLD) {
auto const d_offsets =
device_span<size_type const>{offsets_column->view().template data<int32_t>(),
Expand Down

0 comments on commit 7086732

Please sign in to comment.