Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix various build errors I encountered as I tried to build RAFT locally on my workstation. (Command used: `./build.sh -g raft-dask pylibraft libraft tests bench --compile-libs`) * Add `gtest` as a link dependency of the C++ benchmark suite, to fix the error ``` [266/332] Building CUDA object CMakeFiles/NEIGHBORS_BENCH.dir/bench/neighbors/refine.cu.o FAILED: CMakeFiles/NEIGHBORS_BENCH.dir/bench/neighbors/refine.cu.o In file included from /home/phcho/Desktop/raft/cpp/bench/neighbors/../../test/neighbors/../test_utils.cuh:19, from /home/phcho/Desktop/raft/cpp/bench/neighbors/../../test/neighbors/ann_utils.cuh:28, from /home/phcho/Desktop/raft/cpp/bench/neighbors/../../test/neighbors/refine_helper.cuh:18, from /home/phcho/Desktop/raft/cpp/bench/neighbors/refine.cu:39: /home/phcho/Desktop/raft/cpp/bench/neighbors/../../test/neighbors/../test_utils.h:22:10: fatal error: gtest/gtest.h: No such file or directory 22 | #include <gtest/gtest.h> | ^~~~~~~~~~~~~~~ compilation terminated. ``` * Explicitly specify the namespace for `alignTo`. * Cast pointers into an integral type prior to passing it to `alignTo`. * When calling `areSameAlignOffsets()`, pass the underlying pointers of the mdspan objects. Passing an mdspan to `areSameAlignOffsets()` is an error. Authors: - Philip Hyunsu Cho (https://github.com/hcho3) Approvers: - Micka (https://github.com/lowener) - Robert Maynard (https://github.com/robertmaynard) - Artem M. Chirkin (https://github.com/achirkin) - Corey J. Nolet (https://github.com/cjnolet) URL: #1152
- Loading branch information