-
Notifications
You must be signed in to change notification settings - Fork 154
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
build wheels without build isolation #1473
base: branch-24.12
Are you sure you want to change the base?
Changes from 26 commits
b983143
9e2ceef
8c747f5
7cf37ee
4477b70
d6f05c6
d18c3f7
6c64e73
cbfaf85
9744bcf
8256e35
28e34eb
8251aaa
130e761
29b005e
fc8d575
ec06a4a
cb6b07d
75eaf12
7b87cd6
f59a067
1199e31
5e54225
9f979b5
aa62971
b4cd177
69fa9e8
8b841c2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -3,4 +3,34 @@ | |||||||||||||||
|
||||||||||||||||
set -euo pipefail | ||||||||||||||||
|
||||||||||||||||
ci/build_wheel.sh libcuspatial python/libcuspatial cpp | ||||||||||||||||
package_name="libcuspatial" | ||||||||||||||||
|
||||||||||||||||
git clone \ | ||||||||||||||||
--branch multiple-file-keys \ | ||||||||||||||||
https://github.com/jameslamb/dependency-file-generator.git \ | ||||||||||||||||
/tmp/rapids-dependency-file-generator | ||||||||||||||||
|
||||||||||||||||
pip uninstall --yes rapids-dependency-file-generator | ||||||||||||||||
pip install /tmp/rapids-dependency-file-generator | ||||||||||||||||
|
||||||||||||||||
Comment on lines
+8
to
+15
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
TODO: remove this before merging |
||||||||||||||||
rapids-logger "Generating build requirements" | ||||||||||||||||
matrix_selectors="cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION};cuda_suffixed=true" | ||||||||||||||||
|
||||||||||||||||
rapids-dependency-file-generator \ | ||||||||||||||||
--output requirements \ | ||||||||||||||||
--file-key "py_build_${package_name}" \ | ||||||||||||||||
--file-key "py_rapids_build_${package_name}" \ | ||||||||||||||||
--matrix "${matrix_selectors}" \ | ||||||||||||||||
| tee /tmp/requirements-build.txt | ||||||||||||||||
|
||||||||||||||||
rapids-logger "Installing build requirements" | ||||||||||||||||
python -m pip install \ | ||||||||||||||||
-v \ | ||||||||||||||||
--prefer-binary \ | ||||||||||||||||
-r /tmp/requirements-build.txt | ||||||||||||||||
|
||||||||||||||||
# build with '--no-build-isolation', for better sccache hit rate | ||||||||||||||||
# 0 really means "add --no-build-isolation" (ref: https://github.com/pypa/pip/issues/5735) | ||||||||||||||||
export PIP_NO_BUILD_ISOLATION=0 | ||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok I think this is working. On the latest build on
On this PR, none of that.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I mention that because it looks to me like we're not getting
There hasn't been a new Gonna try another build to double-check this. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah cool ok, I just did another build and saw all cache hits. Must have just gotten unlucky before with new
|
||||||||||||||||
|
||||||||||||||||
ci/build_wheel.sh "${package_name}" python/libcuspatial cpp |
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.
Anticipating a review comment like "is this left over from debugging?"... I've intentionally left this in. I think it's generally useful to print the
sccache
stats in these CI logs, as they could provide a hint when you experience issues like CI timeouts or out-of-memory.This only adds 27 lines to the logs, like this:
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.
Yes, this is good IMO. I'm also going to add this kind of thing into the telemetry.
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.
I agree, I want us to start printing sccache in more jobs so that we can proactively identify these kinds of issues.