Skip to content

Restore compatibility with older cuda-bindings #563

@leofang

Description

@leofang

@brandon-b-miller get_cuda_native_handle was not added until very recently (12.9.1), so this will break users who are using older cuda-bindings 12.x. I suggest this:

try:
    from cuda.bindings.utils import get_cuda_native_handle
except ImportError:
    def get_cuda_native_handle(obj):
       return int(obj)

Originally posted by @leofang in #401 (comment)

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions