Skip to content

Add experimental support for compiling CUDA kernels with Clang#176

Merged
szymonlopaciuk merged 3 commits into
xsuite:mainfrom
szymonlopaciuk:cuda-clang-experiment
Jul 22, 2026
Merged

Add experimental support for compiling CUDA kernels with Clang#176
szymonlopaciuk merged 3 commits into
xsuite:mainfrom
szymonlopaciuk:cuda-clang-experiment

Conversation

@szymonlopaciuk

@szymonlopaciuk szymonlopaciuk commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Description

Introduce an experimental clang backend for ContextCupy.

It can be enabled by specifying a backend='clang' flag on ContextCupy; the default value is nvrtc to use the Nvidia compiler. Additionally the environment flag XO_CUDA_BACKEND can be used to select this for the whole session, and XO_CUDA_CLANG can be given a path to the clang++ executable if one cannot be auto-discovered for some reason.

@szymonlopaciuk
szymonlopaciuk force-pushed the cuda-clang-experiment branch 2 times, most recently from bd91917 to 7e33ebc Compare July 20, 2026 09:48
@szymonlopaciuk
szymonlopaciuk force-pushed the cuda-clang-experiment branch from 7e33ebc to 5203981 Compare July 20, 2026 09:51
@szymonlopaciuk szymonlopaciuk changed the title [WIP] Add experimental support for compiling CUDA kernels with Clang Add experimental support for compiling CUDA kernels with Clang Jul 21, 2026
@szymonlopaciuk szymonlopaciuk mentioned this pull request Jul 21, 2026
@szymonlopaciuk
szymonlopaciuk merged commit 2e2c5f7 into xsuite:main Jul 22, 2026
1 check passed
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