Skip to content

CUDA with clang compatibility: patch for quantum-kick radiation - #828

Merged
szymonlopaciuk merged 1 commit into
xsuite:mainfrom
szymonlopaciuk:cuda-clang-synrad-fixes
Jul 24, 2026
Merged

szymonlopaciuk merged 1 commit into
xsuite:mainfrom
szymonlopaciuk:cuda-clang-synrad-fixes

Conversation

@szymonlopaciuk

Copy link
Copy Markdown
Collaborator

Description

Small fix required to make recent GPU synrad changes compile on CUDA using clang (see xsuite/xobjects#176).

NVRTC by default demotes const arrays that are too large for constant memory to the global memory. This is not the case for clang, which produces code which does not fit in the available constant space. This patch detects compilation with clang, and adds a __device__ qualifier where needed.

@szymonlopaciuk
szymonlopaciuk merged commit f85dbd3 into xsuite:main Jul 24, 2026
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