Skip to content

[NVVM] Refactor program_init#1653

Open
abhilash1910 wants to merge 3 commits intoNVIDIA:mainfrom
abhilash1910:nvvm_extras
Open

[NVVM] Refactor program_init#1653
abhilash1910 wants to merge 3 commits intoNVIDIA:mainfrom
abhilash1910:nvvm_extras

Conversation

@abhilash1910
Copy link
Contributor

Description

Linked to #1218 and comment: #1218
Refactor the option validation inside ProgramOptions init rather than Program_init.

cc @leofang @rwgk

@copy-pr-bot
Copy link
Contributor

copy-pr-bot bot commented Feb 19, 2026

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@abhilash1910
Copy link
Contributor Author

pre-commit.ci autofix

@abhilash1910
Copy link
Contributor Author

abhilash1910 commented Feb 19, 2026

/ok to test 129a571

@Andy-Jost Andy-Jost added enhancement Any code-related improvements cuda.core Everything related to the cuda.core module labels Mar 3, 2026
@Andy-Jost Andy-Jost self-assigned this Mar 3, 2026
@Andy-Jost Andy-Jost added this to the cuda.core v0.7.0 milestone Mar 3, 2026
Copy link
Contributor

@Andy-Jost Andy-Jost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@rwgk
Copy link
Collaborator

rwgk commented Mar 6, 2026

/ok to test 8b1fb02

@rwgk rwgk enabled auto-merge (squash) March 6, 2026 06:35
@rwgk
Copy link
Collaborator

rwgk commented Mar 6, 2026

(trying to help this over the finish line while our runners are not so busy)

@github-actions
Copy link

github-actions bot commented Mar 6, 2026

Comment on lines 653 to 654
if isinstance(module_source, str):
# Textual LLVM IR - encode to UTF-8 bytes
module_source = module_source.encode("utf-8")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: I assume we could move the str->bytes conversion to earlier (perhaps do an in-place change in _prepare_nvvm_options_impl). Not a blocker!

@leofang
Copy link
Member

leofang commented Mar 7, 2026

Thanks @abhilash1910! Could you check the test failure?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cuda.core Everything related to the cuda.core module enhancement Any code-related improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants