rapidsai / raft

RAFT contains fundamental widely-used algorithms and primitives for machine learning and information retrieval. The algorithms are CUDA-accelerated and form building blocks for more easily writing high performance applications.
https://docs.rapids.ai/api/raft/stable/
Apache License 2.0
746 stars 189 forks source link

[BUG] `bitmap_view::set` not work #2368

Closed rhdong closed 3 months ago

rhdong commented 3 months ago

When call bitmap_view::set(int row, int col, bool new_values);

/raft/cpp/include/raft/core/bitmap.cuh(42): error: argument of type "__nv_bool *" is incompatible with parameter of type "int"
    set(row * cols_ + col, &new_value);
                           ^

If you encounter this problem, you can use the bitset API as a temporary alternative.