Skip to content

Commit

Permalink
Remove need for T() in ValLoc.
Browse files Browse the repository at this point in the history
  • Loading branch information
rchen20 committed Sep 14, 2024
1 parent a7a740e commit b6e0e81
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions include/RAJA/pattern/params/params_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ namespace expt
RAJA_HOST_DEVICE constexpr bool operator<(const ValLoc& rhs) const { return val < rhs.val; }
RAJA_HOST_DEVICE constexpr bool operator>(const ValLoc& rhs) const { return val > rhs.val; }

RAJA_HOST_DEVICE constexpr explicit operator T() const { return val; }

RAJA_HOST_DEVICE constexpr value_type getVal() const {return val;}
RAJA_HOST_DEVICE constexpr index_type getLoc() const {return loc;}

Expand Down
2 changes: 1 addition & 1 deletion include/RAJA/util/SoAPtr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ class SoAPtr<RAJA::expt::ValLoc<T, IndexType>, mempool, accessor>
}
RAJA_HOST_DEVICE void set(size_t i, value_type val)
{
accessor::set(mem, i, first_type(val));
accessor::set(mem, i, val.getVal());
accessor::set(mem_idx, i, val.getLoc());
}

Expand Down

0 comments on commit b6e0e81

Please sign in to comment.