From 6581237a48e017cf64f2361770f1edecabc6d403 Mon Sep 17 00:00:00 2001 From: ionthruster Date: Tue, 24 Oct 2023 12:02:15 -0700 Subject: [PATCH] fix issue/1138 --- include/cute/pointer.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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,