Skip to content

Commit

Permalink
fix issue/1138
Browse files Browse the repository at this point in the history
  • Loading branch information
IonThruster committed Oct 24, 2023
1 parent 5cd735c commit 6581237
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions include/cute/pointer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ struct device_ptr
{
using value_type = T;

static const uint32_t ElementsPerStoredItem = sizeof(T) * 8 / sizeof_bits_v<T>;

CUTE_HOST_DEVICE constexpr
device_ptr(T* ptr) : ptr_(ptr) {}

Expand All @@ -113,7 +111,7 @@ struct device_ptr

template <class Index>
CUTE_HOST_DEVICE constexpr
DerivedType operator+(Index const& i) const { return {ptr_ + i / ElementsPerStoredItem}; }
DerivedType operator+(Index const& i) const { return {ptr_ + i}; }

CUTE_HOST_DEVICE constexpr friend
ptrdiff_t operator-(device_ptr<T,DerivedType> const& a,
Expand Down

0 comments on commit 6581237

Please sign in to comment.