Skip to content

fix(examples): 09 names the cuRAND payload the clang route needs - #567

Merged
Sunrisepeak merged 3 commits into
mainfrom
fix/example-09-curand
Sep 5, 2026
Merged

fix(examples): 09 names the cuRAND payload the clang route needs#567
Sunrisepeak merged 3 commits into
mainfrom
fix/example-09-curand

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

clang's CUDA wrapper includes curand_mtgp32_kernel.h unconditionally. The example built on a developer machine only because the host's /usr/include supplied the header; the mcpp-plugins CI runner, with no host CUDA, refused it (mcpp-community/mcpp-plugins#1). mcpp.rules.cuda now adds xim:libcurand's include directory to the device compile and refuses the clang route without it, naming the [xlings.workspace] entry; the example declares it. One-line manifest change, no engine change.

@Sunrisepeak
Sunrisepeak force-pushed the fix/example-09-curand branch from 0555ce6 to 89fabaa Compare September 5, 2026 12:37
clang's CUDA wrapper includes curand_mtgp32_kernel.h unconditionally; the
example built on a developer machine only because the host's /usr/include
supplied it. mcpp.rules.cuda 0.1.0 refuses the clang route without
xim:libcurand and names the entry; the example now declares it.
cuRAND's header includes <nv/target> from CCCL, the separate cuda-cccl
package of the 12.x toolkits; the host's /usr/include supplied it silently
on the developer machine. mcpp.rules.cuda refuses the clang route without
it and names the entry; the example declares 12.9.27, the 12.9 line.
@Sunrisepeak
Sunrisepeak force-pushed the fix/example-09-curand branch from fd9cea9 to 993f104 Compare September 5, 2026 12:50
@Sunrisepeak
Sunrisepeak merged commit de26942 into main Sep 5, 2026
9 checks 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.

2 participants