Skip to content

Overflow in cuPointerGetAttributes return values? #1336

@leofang

Description

@leofang
>>> from cuda.bindings import driver
>>> driver.cuPointerGetAttributes(1, [driver.CUpointer_attribute.CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL], 0)
>>> (<CUresult.CUDA_SUCCESS: 0>, [4294967294])

while the actual value returned by the underlying API is -2. Looks like some unsigned/signed type mismatch.

Originally posted by @stiepan in #1283 (comment)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcuda.bindingsEverything related to the cuda.bindings moduletriageNeeds the team's attention

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions