You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As part of #674 (comment) 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.
This adds to another reason to move SMV elsewhere. We cannot possibly support assignment or in general anything that requires launching a CUDA kernel in cuda.core, unless we relax the design requirement that cuda.core offers abstractions on top of CUDA.
Activity
leofang commentedon Dec 15, 2025
In an offline discussion @cpcloud pointed out that with Python
memoryviewassignment is allowed:This adds to another reason to move SMV elsewhere. We cannot possibly support assignment or in general anything that requires launching a CUDA kernel in
cuda.core, unless we relax the design requirement thatcuda.coreoffers abstractions on top of CUDA.leofang commentedon Dec 15, 2025
(Update: I updated the issue description to cover CTK libraries such as NVRTC and cuFILE, I missed that when summarizing the meeting notes I took)
StridedMemoryViewattribues to typed efficient C/C++/Cython accessible values #180rparolin commentedon Feb 5, 2026
@kkraus14 Can we close this issue now that SMV is staying in cuda.core?
kkraus14 commentedon Feb 5, 2026
I would be in support, but I'd defer to @leofang for if he would prefer to keep this discussion open
rparolin commentedon Feb 6, 2026
@leofang is in favor -- we were discussing during backlog review. I'll close the ticket. Thank you!