Skip to content

Commit

Permalink
CI: fix the graviton job
Browse files Browse the repository at this point in the history
  • Loading branch information
ev-br committed Jun 18, 2024
1 parent d7b541a commit 01bdde8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .cirun.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ runners:
region: "us-east-1"
# Cheapest VM on AWS
instance_type: "c7g.large"
# Ubuntu-22.04, ami image
machine_image: "ami-0a0c8eebcdd6dcbd0"
# Ubuntu-24.04, ami image
machine_image: "ami-0eac975a54dfee8cb"
preemptible: false
# Add this label in the "runs-on" param in .github/workflows/<workflow-name>.yml
# So that this runner is created for running the workflow
Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/run_cirun_graviton.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,26 +47,30 @@ jobs:
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt update
sudo apt-get install -y gfortran cmake ccache libtinfo5 python3-pip pkg-config
sudo apt-get install -y gfortran cmake ccache python3-pip pkg-config
else
echo "::error::$RUNNER_OS not supported"
exit 1
fi
- name: Install python dependencies
run: |
pip3 install numpy meson meson-python ninja build asv virtualenv
pip3 install "numpy<2" meson meson-python ninja build asv virtualenv --break-system-packages
# pip3 install scipy_openblas32
# install the nightly OpenBLAS wheel
pip install -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple scipy-openblas32
pip install -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple scipy-openblas32 --break-system-packages
python3 -c'import scipy_openblas32 as so; print(so.get_pkg_config())' > scipy_openblas.pc
export PKG_CONFIG_PATH=$PWD
echo ">>>> PKG_CONFIG" $PKG_CONFIG_PATH
cat scipy_openblas.pc
echo ">>> mesonpy"
python3 -c'import mesonpy; print(mesonpy.__file__)'
echo $PATH
echo $PYTHONPATH
- name: Set and log asv machine configuration
run: |
cd benchmark/pybench/asv
python3 -m asv machine --yes --config asv.conf.json
echo "Machine Configuration:"
cat ~/.asv-machine.json
Expand All @@ -79,8 +83,9 @@ jobs:
- name: Run benchmarks
run: |
echo ${{ github.workspace}}
cd benchmark/pybench/asv
python3 -c"import mesonpy; print(mesonpy.__file__)"
python3 -m asv run --config $ASV_CONFIG -v
env:
PKG_CONFIG_PATH: ${{ github.workspace }}
PYTHONPATH: ${{ github.workspace }} # FIXME

4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
build-backend = "mesonpy"
requires = [
"meson-python>=0.16.0",
"numpy",
"meson",
"ninja",
"numpy<2",
"scipy_openblas32"
]

Expand Down

0 comments on commit 01bdde8

Please sign in to comment.