From 22f289d2cb91c60ca21066119c7b14d9fc702213 Mon Sep 17 00:00:00 2001 From: Mickael Ide Date: Mon, 26 Aug 2024 06:03:41 -0700 Subject: [PATCH] Fix device visibility of bitset_view::set --- cpp/include/raft/core/bitmap.cuh | 2 +- cpp/include/raft/core/bitset.cuh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/include/raft/core/bitmap.cuh b/cpp/include/raft/core/bitmap.cuh index cafd1977ab..39dcf36201 100644 --- a/cpp/include/raft/core/bitmap.cuh +++ b/cpp/include/raft/core/bitmap.cuh @@ -35,7 +35,7 @@ _RAFT_HOST_DEVICE inline bool bitmap_view::test(const index_t } template -_RAFT_HOST_DEVICE void bitmap_view::set(const index_t row, +_RAFT_DEVICE void bitmap_view::set(const index_t row, const index_t col, bool new_value) const { diff --git a/cpp/include/raft/core/bitset.cuh b/cpp/include/raft/core/bitset.cuh index 0cdb4c1fb6..057bdf85e6 100644 --- a/cpp/include/raft/core/bitset.cuh +++ b/cpp/include/raft/core/bitset.cuh @@ -46,7 +46,7 @@ _RAFT_HOST_DEVICE bool bitset_view::operator[](const index_t } template -_RAFT_HOST_DEVICE void bitset_view::set(const index_t sample_index, +_RAFT_DEVICE void bitset_view::set(const index_t sample_index, bool set_value) const { const index_t bit_element = sample_index / bitset_element_size;