Skip to content

Commit

Permalink
Correct style
Browse files Browse the repository at this point in the history
  • Loading branch information
wphicks committed Aug 5, 2022
1 parent 540eeb9 commit a17e250
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions cpp/include/raft/vectorized.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,7 @@ struct TxN_t {
math_t data[Ratio];
} val;

__device__ auto* vectorized_data() {
return reinterpret_cast<io_t*>(val.data);
}
__device__ auto* vectorized_data() { return reinterpret_cast<io_t*>(val.data); }

///@todo: add default constructor

Expand Down Expand Up @@ -312,14 +310,14 @@ struct TxN_t {
template <typename idx_t = int>
DI void load(const math_t* ptr, idx_t idx)
{
const io_t* bptr = reinterpret_cast<const io_t*>(&ptr[idx]);
*vectorized_data() = __ldg(bptr);
const io_t* bptr = reinterpret_cast<const io_t*>(&ptr[idx]);
*vectorized_data() = __ldg(bptr);
}

template <typename idx_t = int>
DI void load(math_t* ptr, idx_t idx)
{
io_t* bptr = reinterpret_cast<io_t*>(&ptr[idx]);
io_t* bptr = reinterpret_cast<io_t*>(&ptr[idx]);
*vectorized_data() = *bptr;
}

Expand Down

0 comments on commit a17e250

Please sign in to comment.