-
-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[CI] Add circleci build and test for arm64. #20460
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
c0d2eb4
Add circleci CI for arm64.
cmarmo 5471a80
Update documentation and arm64 trigger. Build against openblas.
cmarmo 8d400ad
Update documentation.
cmarmo c041f46
Merge branch 'main' into circle-ci-arm
cmarmo 6156e9f
Test: change the random seed in failing test.
cmarmo a6cb527
Update comment about random seed.
cmarmo a3e78a3
Address comments.
cmarmo 50afc95
Merge branch 'main' into circle-ci-arm
cmarmo a268f8d
Update .circleci/config.yml
cmarmo 1469d1f
Merge branch 'main' into circle-ci-arm
cmarmo 572f83f
Merge branch 'circle-ci-arm' of https://github.com/cmarmo/scikit-lear…
cmarmo 0587ac3
Apply suggestions from code review
ogrisel 1b62579
Clean-up duplicated lines and trigger [arm64]
ogrisel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,60 @@ | ||||||||
#!/bin/bash | ||||||||
|
||||||||
set -e | ||||||||
set -x | ||||||||
|
||||||||
UNAMESTR=`uname` | ||||||||
|
||||||||
setup_ccache() { | ||||||||
echo "Setting up ccache" | ||||||||
mkdir /tmp/ccache/ | ||||||||
which ccache | ||||||||
for name in gcc g++ cc c++ x86_64-linux-gnu-gcc x86_64-linux-gnu-c++; do | ||||||||
ln -s $(which ccache) "/tmp/ccache/${name}" | ||||||||
done | ||||||||
export PATH="/tmp/ccache/:${PATH}" | ||||||||
ccache -M 256M | ||||||||
} | ||||||||
|
||||||||
# imports get_dep | ||||||||
source build_tools/shared.sh | ||||||||
|
||||||||
sudo add-apt-repository --remove ppa:ubuntu-toolchain-r/test | ||||||||
sudo apt-get update | ||||||||
sudo apt-get install python3-virtualenv ccache | ||||||||
python3 -m virtualenv --system-site-packages --python=python3 testenv | ||||||||
source testenv/bin/activate | ||||||||
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. Just in case pip fix bugs in the future, let's use the latest version in the venv:
Suggested change
|
||||||||
pip install --upgrade pip | ||||||||
setup_ccache | ||||||||
python -m pip install $(get_dep cython $CYTHON_VERSION) \ | ||||||||
$(get_dep joblib $JOBLIB_VERSION) | ||||||||
python -m pip install $(get_dep threadpoolctl $THREADPOOLCTL_VERSION) \ | ||||||||
$(get_dep pytest $PYTEST_VERSION) \ | ||||||||
$(get_dep pytest-xdist $PYTEST_XDIST_VERSION) | ||||||||
|
||||||||
if [[ "$COVERAGE" == "true" ]]; then | ||||||||
python -m pip install codecov pytest-cov | ||||||||
fi | ||||||||
|
||||||||
if [[ "$PYTEST_XDIST_VERSION" != "none" ]]; then | ||||||||
python -m pip install pytest-xdist | ||||||||
fi | ||||||||
|
||||||||
if [[ "$TEST_DOCSTRINGS" == "true" ]]; then | ||||||||
# numpydoc requires sphinx | ||||||||
python -m pip install sphinx | ||||||||
python -m pip install numpydoc | ||||||||
fi | ||||||||
|
||||||||
python --version | ||||||||
|
||||||||
# Set parallelism to 3 to overlap IO bound tasks with CPU bound tasks on CI | ||||||||
# workers with 2 cores when building the compiled extensions of scikit-learn. | ||||||||
export SKLEARN_BUILD_PARALLEL=3 | ||||||||
|
||||||||
python -m pip list | ||||||||
pip install --verbose --editable . | ||||||||
ccache -s | ||||||||
python -c "import sklearn; sklearn.show_versions()" | ||||||||
python -m threadpoolctl --import sklearn | ||||||||
python -m pytest sklearn | ||||||||
ogrisel marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.