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
According to the documentation, cudart.cudaMemset should take a device pointer as first argument.
However, with version 12.3.0 on Python 3.11.7, this results in the following error: TypeError: Provided argument is of type <class 'cuda.cuda.CUdeviceptr'> but expected Type <class 'NoneType'>, <class 'type'> or object with Buffer Protocol.
The text was updated successfully, but these errors were encountered:
I see that you're trying to interop between Driver's cuda.CUdeviceptr type and the Runtime's cudart.cudaMemset API. While there already exists some interop in Runtime, this does looks like a good area for extending it.
In the meantime, as a WAR you can call the type's __int__() method to get a Runtime compatible value.
According to the documentation,
cudart.cudaMemset
should take a device pointer as first argument.However, with version 12.3.0 on Python 3.11.7, this results in the following error:
TypeError: Provided argument is of type <class 'cuda.cuda.CUdeviceptr'> but expected Type <class 'NoneType'>, <class 'type'> or object with Buffer Protocol
.The text was updated successfully, but these errors were encountered: