Skip to content

BUG: Fix CUDADispatcher.compile_device ignoring abi flag#891

Open
acosmicflamingo wants to merge 2 commits into
NVIDIA:mainfrom
acosmicflamingo:cuda-jit-abi-fix
Open

BUG: Fix CUDADispatcher.compile_device ignoring abi flag#891
acosmicflamingo wants to merge 2 commits into
NVIDIA:mainfrom
acosmicflamingo:cuda-jit-abi-fix

Conversation

@acosmicflamingo

Copy link
Copy Markdown

Resolves #890

Although most of cuda.jit's flags make their way down to CUDADispatcher's compile_cuda function, the abi flag was not one of them. It is properly handled in the internal compile function here however (hence @shwina's reproducer).

Only guidance I need is whether a test for this should go in a module that tests cuda.jit or the compiler functionality.

@copy-pr-bot

copy-pr-bot Bot commented May 29, 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.

@acosmicflamingo acosmicflamingo marked this pull request as ready for review June 3, 2026 22:18
@acosmicflamingo acosmicflamingo changed the title [WIP] BUG: Fix CUDADispatcher.compile_device ignoring abi flag BUG: Fix CUDADispatcher.compile_device ignoring abi flag Jun 3, 2026
@acosmicflamingo

Copy link
Copy Markdown
Author

After seeing that there was an individual test module for numba_cuda/numba/cuda/tests/cudapy/test_cuda_jit_no_types.py, I figured it'd be safe to just create test_cuda_jit_abi.py, but it'd be easy for me to move it if maintainers would prefer.

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.

[BUG]inspect_llvm() returns LLVM IR with numba ABI even if jitd for C ABI

1 participant