Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[C++] Fix key_map_avx2.cc comiple. #35736

Closed
Light-City opened this issue May 24, 2023 · 0 comments · Fixed by #35737
Closed

[C++] Fix key_map_avx2.cc comiple. #35736

Light-City opened this issue May 24, 2023 · 0 comments · Fixed by #35737
Assignees
Milestone

Comments

@Light-City
Copy link
Contributor

Light-City commented May 24, 2023

key_map_avx2.cc compile error.

when i use cmake -DARROW_SIMD_LEVEL=AVX2, i catch this error.

/home/light/arrow/cpp/src/arrow/compute/key_map_avx2.cc: In member function 'int arrow::compute::SwissTable::early_filter_imp_avx2_x32(int, const uint32_t*, uint8_t*, uint8_t*) const':
/home/light/arrow/cpp/src/arrow/compute/key_map_avx2.cc:216:3: error: 'ARROW_DCHECK' was not declared in this scope
  216 |   ARROW_DCHECK(log_blocks_ <= 4);
      |   ^~~~~~~~~~~~
/home/light/arrow/cpp/src/arrow/compute/key_map_avx2.cc: In member function 'int arrow::compute::SwissTable::extract_group_ids_avx2(int, const uint32_t*, const uint8_t*, uint32_t*, int, int, int) const':
/home/light/arrow/cpp/src/arrow/compute/key_map_avx2.cc:377:3: error: 'ARROW_DCHECK' was not declared in this scope
  377 |   ARROW_DCHECK(byte_size == 1 || byte_size == 2 || byte_size == 4);
      |   ^~~~~~~~~~~~
make[2]: *** [src/arrow/CMakeFiles/arrow_objlib.dir/build.make:2071: src/arrow/CMakeFiles/arrow_ob

Component(s)

C++

pitrou pushed a commit that referenced this issue May 24, 2023
Add missing include for `ARROW_DCHECK`.

* Closes: #35736

Authored-by: light-city <455954986@qq.com>
Signed-off-by: Antoine Pitrou <antoine@python.org>
@pitrou pitrou added this to the 13.0.0 milestone May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants