diff --git a/include/cute/pointer.hpp b/include/cute/pointer.hpp index 6c6a738f10..d1b304267b 100644 --- a/include/cute/pointer.hpp +++ b/include/cute/pointer.hpp @@ -93,8 +93,6 @@ struct device_ptr { using value_type = T; - static const uint32_t ElementsPerStoredItem = sizeof(T) * 8 / sizeof_bits_v; - CUTE_HOST_DEVICE constexpr device_ptr(T* ptr) : ptr_(ptr) {} @@ -113,7 +111,7 @@ struct device_ptr template 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 const& a,