Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Fix instructions on building cub #298

Merged
merged 3 commits into from
May 20, 2021
Merged

Conversation

zasdfgbnm
Copy link
Contributor

The building instruction in README.md doesn't work. Without cloning thrust, nvcc will try to use CUDA's built-in thrust, which will error with version not match.

.gitignore Show resolved Hide resolved
Copy link
Collaborator

@alliepiper alliepiper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good point, those instructions are out of date.

I think we should just replace those instructions with a link to Thrust's CONTRIBUTING.md file. Would you mind updating this PR to do that instead?

BTW -- the long term plan here is to merge Thrust and CUB into the same repo, since they haven't been standalone projects for quite some time. NVIDA/Thrust#1283 is tracking this effort.

README.md Outdated Show resolved Hide resolved
@alliepiper alliepiper added helps: pytorch Helps or needed by PyTorch. only: docs Documentation changes only. Doesn't need code CI. labels May 11, 2021
@alliepiper alliepiper added this to the 1.13.0 milestone May 11, 2021
zasdfgbnm and others added 2 commits May 11, 2021 10:07
Thrust and CUB are tightly coupled, and just pulling CUB will cause
issues when an incompatible version of Thrust is located in a toolchain's
SDK. To avoid this, it's best to clone both to ensure that compatible
versions are used.
alliepiper added a commit to alliepiper/thrust that referenced this pull request May 12, 2021
@alliepiper
Copy link
Collaborator

All set -- this version describes the new preferred approach to building CUB as a developer. NVIDIA/thrust#1432 is related.

Thanks again for pointing this out! Those instructions were written before the build systems were integrated, so hopefully this update will make CUB development a little easier for new contributors.

alliepiper added a commit to NVIDIA/thrust that referenced this pull request May 20, 2021
@alliepiper alliepiper merged commit becf999 into NVIDIA:main May 20, 2021
@zasdfgbnm zasdfgbnm deleted the build-tutorial branch May 20, 2021 21:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
helps: pytorch Helps or needed by PyTorch. only: docs Documentation changes only. Doesn't need code CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants