Skip to content

Support custom naming of nvrtc programs #506

Open
@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.

Activity

added
enhancementAny code-related improvements
P2Low priority - Nice to have
cuda.coreEverything related to the cuda.core module
on Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Low priority - Nice to havecuda.coreEverything related to the cuda.core moduleenhancementAny code-related improvementstriageNeeds the team's attention

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @leofang@brandon-b-miller

        Issue actions

          Support custom naming of `nvrtc` programs · Issue #506 · NVIDIA/cuda-python