cuda-python icon indicating copy to clipboard operation
cuda-python copied to clipboard

RFC: Remove `StridedMemoryView` (to somewhere else)?

Open leofang opened this issue 1 month ago • 2 comments

As part of https://github.com/NVIDIA/cuda-python/issues/674#issuecomment-3656821898 it was raised that our library design should strictly follow what the underlying CUDA driver/runtime/library APIs offer (Update: added "library" to cover other CTK libraries such as NVRTC and cuFILE, I missed that when summarizing the meeting notes I took).

StridedMemoryView is not a fundamental object of CUDA and was offered only for Python users' convenience.

I have a somewhat strong opinion that a data structure should co-live with the data algorithm implementations. Otherwise, we do not know if a data structure is properly designed, and to test it would require us to duplicate the algorithms implemented elsewhere. Since we decided to purge StridedLayout, it would make sense to stick to the same design guidelines and purge SMV as well. It should be moved to the library that would provide algorithms that consume SMV.

This RFC aims for downstream SMV users to provide feedbacks.

leofang avatar Dec 15 '25 18:12 leofang