Skip to content

Overflow in cuPointerGetAttributes return values? #1336

Description

@leofang
>>>fromcuda.bindingsimportdriver>>>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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions