Skip to content

feat(cuda-oxide): ptx_asm! up to 256 inputs and #[constant(export_name)] - #1818

Open
ssoj13 wants to merge 1 commit into
NVIDIA:mainfrom
ssoj13:feat/optix-ptx-asm-256
Open

ssoj13 wants to merge 1 commit into
NVIDIA:mainfrom
ssoj13:feat/optix-ptx-asm-256

Conversation

@ssoj13

@ssoj13 ssoj13 commented Nov 15, 2026

Copy link
Copy Markdown

Extends \ptx_asm!\ marker arity up to 256 inputs (__ptx_asm_out_0..320\ and __ptx_asm_void_0..256) for wide PTX calls such as OptiX cooperative vectors, and teaches #[cuda_module]\ to honour #[constant(export_name)].

Includes pass and compile-fail tests covering the widest shapes and three-digit template placeholders.

_optix_vector_op3_64xi32 is one call with 64 outputs and 197 inputs;
_optix_outer_product_accumulate_64xi32 takes 136 inputs. Markers now cover
__ptx_asm_out_0..320 and __ptx_asm_void_0..256, and #[cuda_module]
honours #[constant(export_name)]. Tests cover the widest shapes and a
three-digit template placeholder.

Co-authored-by: Gemini 4 Hydrogen <noreply@google.com>
Signed-off-by: Alex Khalyavin <joss13@gmail.com>
@ssoj13
ssoj13 requested a review from nihalpasham as a code owner November 15, 2026 03:03
@copy-pr-bot

copy-pr-bot Bot commented Nov 15, 2026

Copy link
Copy Markdown

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.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant