Skip to content

Support custom naming of nvrtc programs #506

@brandon-b-miller

Description

@brandon-b-miller

Currently the program name when compiling c++ code with Program always defaults to 'default_program'. This makes errors a little less descriptive than what is currently supported by numba-cuda. For instance when compiling an improperly formed c++ program with numba's NVRTC bindings, NVRTC will report

error.cu(4): error: identifier "SYNTAX" is undefined                                                                                                                                                                                     
    SYNTAX ERROR

But through the Program interface I'll always get

default_program(4): error: identifier "SYNTAX" is undefined                                                                                                                                                                              
    SYNTAX ERROR

To fix this, we could consume the name through the program constructor and keep track of it or extend ProgramOptions with an additional option, or something else.

Metadata

Metadata

Assignees

Labels

P2Low priority - Nice to havecuda.coreEverything related to the cuda.core moduleenhancementAny code-related improvements

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions