Skip to content

Commit

Permalink
Fix device visibility of bitset_view::set
Browse files Browse the repository at this point in the history
  • Loading branch information
lowener committed Aug 26, 2024
1 parent 73dc36c commit 22f289d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cpp/include/raft/core/bitmap.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ _RAFT_HOST_DEVICE inline bool bitmap_view<bitmap_t, index_t>::test(const index_t
}

template <typename bitmap_t, typename index_t>
_RAFT_HOST_DEVICE void bitmap_view<bitmap_t, index_t>::set(const index_t row,
_RAFT_DEVICE void bitmap_view<bitmap_t, index_t>::set(const index_t row,
const index_t col,
bool new_value) const
{
Expand Down
2 changes: 1 addition & 1 deletion cpp/include/raft/core/bitset.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ _RAFT_HOST_DEVICE bool bitset_view<bitset_t, index_t>::operator[](const index_t
}

template <typename bitset_t, typename index_t>
_RAFT_HOST_DEVICE void bitset_view<bitset_t, index_t>::set(const index_t sample_index,
_RAFT_DEVICE void bitset_view<bitset_t, index_t>::set(const index_t sample_index,
bool set_value) const
{
const index_t bit_element = sample_index / bitset_element_size;
Expand Down

0 comments on commit 22f289d

Please sign in to comment.