Skip to content

[FEA]: Make Linker.backend a classmethod #714

Open
@brandon-b-miller

Description

@brandon-b-miller

Is this a duplicate?

Area

cuda.core

Is your feature request related to a problem? Please describe.

Linker fully abstracts the linking details away from the user, but in certain cases the user might need to query the backend. For example, a user linking static code might prefer to pass ltoir rather than ptx if they know nvjitlink is available. Linker.backend exposes this property but requires instantiating a Linker instance to query. We should make it possible to get the info without doing so.

Describe the solution you'd like

I'd like Linker.backend to return driver or nvjitlink without instantiating the class

Describe alternatives you've considered

Instantiating a LinkerOptions in a function that catches the warning

Additional context

NVIDIA/numba-cuda#133

Metadata

Metadata

Assignees

Labels

P0High priority - Must do!cuda.coreEverything related to the cuda.core moduleenhancementAny code-related improvements

Type

No type

Projects

Status

Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions