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
Is this a duplicate?
Area
cuda.core
Is your feature request related to a problem? Please describe.
Linkerfully 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 passltoirrather thanptxif they knownvjitlinkis available.Linker.backendexposes this property but requires instantiating aLinkerinstance to query. We should make it possible to get the info without doing so.Describe the solution you'd like
I'd like
Linker.backendto returndriverornvjitlinkwithout instantiating the classDescribe alternatives you've considered
Instantiating a LinkerOptions in a function that catches the warning
Additional context
NVIDIA/numba-cuda#133