Skip to content
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

Merged
merged 90 commits into from
Aug 8, 2023
Merged

Conversation

jrhemstad
Copy link
Collaborator

@jrhemstad jrhemstad commented Jul 7, 2023

Description

fixes #131

This provides a simple, standalone project that demonstrates how to use the CCCL monorepo from a cmake project.

Checklist

  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@jrhemstad jrhemstad linked an issue Jul 7, 2023 that may be closed by this pull request
@jrhemstad jrhemstad deleted the branch NVIDIA:main July 11, 2023 14:45
@jrhemstad jrhemstad closed this Jul 11, 2023
@jrhemstad jrhemstad reopened this Jul 11, 2023
@jrhemstad jrhemstad changed the base branch from monorepo to main July 11, 2023 18:13
@jrhemstad
Copy link
Collaborator Author

This is currently blocked by #203

@jrhemstad jrhemstad requested a review from a team as a code owner August 7, 2023 18:04
@jrhemstad jrhemstad requested review from gevtushenko and removed request for a team August 7, 2023 18:04
@jrhemstad jrhemstad changed the base branch from branch/2.2.x to main August 7, 2023 18:04
@jrhemstad jrhemstad requested a review from a team as a code owner August 7, 2023 18:41
@jrhemstad jrhemstad requested review from jarmak-nv and removed request for a team August 7, 2023 18:41
examples/example_project/example.cu Outdated Show resolved Hide resolved
examples/example_project/example.cu Outdated Show resolved Hide resolved
"description": "Configure, build, and run the CCCL Examples",
"inherits": "base",
"cacheVariables": {
"CMAKE_CUDA_ARCHITECTURES": "70",
Copy link
Collaborator Author

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?

Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Create a CCCL demo project
3 participants