-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add example cmake project #177
Conversation
This is currently blocked by #203 |
Move the CCCL example targets/tests to `cccl.example.*`
This file is included in the top-level CMakeLists.txt.
"description": "Configure, build, and run the CCCL Examples", | ||
"inherits": "base", | ||
"cacheVariables": { | ||
"CMAKE_CUDA_ARCHITECTURES": "70", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@allisonvacanti Can this be overriden?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep -- this can be overridden by either passing -DCMAKE_CUDA_ARCHITECTURES
to cmake (in addition to --preset
), or modifying the config with ccmake/cmake-gui.
I only added it because the example uses libcu++ atomics, so the default arch (5.2) will throw errors for being too old. If the example avoided atomics we could drop this completely.
Description
fixes #131
This provides a simple, standalone project that demonstrates how to use the CCCL monorepo from a cmake project.
Checklist