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

Use target name variable. #187

Merged
merged 1 commit into from
May 12, 2022

Conversation

bdice
Copy link
Contributor

@bdice bdice commented May 10, 2022

When building libcudf, I see a message Generate git revision file for {target} before the build begins. I think this is intended to say ${target} and insert the variable name.

Also, I notice this message because this stage takes a long time (something like 10 seconds) for most of my builds, even partial builds. What does this command actually do, and why does it take so long? Can it be cached / accelerated / disabled?

@robertmaynard
Copy link
Contributor

I think this is intended to say ${target} and insert the variable name.

Correct.

Also, I notice this message because this stage takes a long time (something like 10 seconds) for most of my builds, even partial builds. What does this command actually do, and why does it take so long? Can it be cached / accelerated / disabled?

It calls into git to compute a set of information ( branch name, SHA1 hash, have local changes, git describe tag ) for the source code directory. This evaluation can't be cached since the build-system ( CMake ) has no knowledge of what files have changed. We can't do this computation at CMake configuration time, since it won't re-run whenever source files are changed.

I don't see this function being called in cudf or rmm so it would be great to know what dependency is using it. Maybe it can be removed.

@robertmaynard robertmaynard added bug Something isn't working non-breaking Introduces a non-breaking change 3 - Ready for Review Ready for review by team labels May 10, 2022
@robertmaynard
Copy link
Contributor

@bdice Are you good with this being merged?

@bdice
Copy link
Contributor Author

bdice commented May 12, 2022

@robertmaynard Thanks for the helpful info! I'll merge it.

I don't see this function being called in cudf or rmm so it would be great to know what dependency is using it. Maybe it can be removed.

Hmm. I'll see if I can figure out what's calling this next time it comes up.

@bdice
Copy link
Contributor Author

bdice commented May 12, 2022

@gpucibot merge

@bdice
Copy link
Contributor Author

bdice commented May 12, 2022

@robertmaynard I don't have merge privileges, oops. However, I also noticed that CODEOWNERS reports errors: https://github.com/rapidsai/rapids-cmake/blob/branch-22.06/.github/CODEOWNERS

Looks like @rapidsai/rapids-cmake-codeowners doesn't exist.

@robertmaynard
Copy link
Contributor

@gpucibot merge

@rapids-bot rapids-bot bot merged commit a0e4842 into rapidsai:branch-22.06 May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for Review Ready for review by team bug Something isn't working non-breaking Introduces a non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants