Skip to content

Commit

Permalink
Fix git/ownership issues / install numpy
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Dec 6, 2023
1 parent 9d36c99 commit 19091bd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/benchmark_models.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
name: benchmark models
steps:
- uses: actions/checkout@master
- name: chown checkout directory
# https://github.com/actions/runner/issues/2033
run: chown -R $(id -u):$(id -g) $PWD

- run: echo "PARPE_BASE=$(pwd)" >> $GITHUB_ENV
- run: echo "PARPE_BUILD=${PARPE_BASE}/build" >> $GITHUB_ENV
Expand Down Expand Up @@ -68,6 +71,6 @@ jobs:
- name: Benchmark models --- tests
run: |
cd $PARPE_BASE/benchmark_collection \
&& AMICI_PARALLEL_COMPILE=4 \
&& AMICI_PARALLEL_COMPILE="" \
BENCHMARK_COLLECTION="$(pwd)/Benchmark-Models-PEtab/Benchmark-Models/" \
$PARPE_BASE/misc/run_in_venv.sh $PARPE_BASE/build/venv ./all.sh
3 changes: 3 additions & 0 deletions .github/workflows/parpe_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:

steps:
- uses: actions/checkout@master
- name: chown checkout directory
# https://github.com/actions/runner/issues/2033
run: chown -R $(id -u):$(id -g) $PWD
- run: git fetch --prune --unshallow

- run: echo "PARPE_BASE=$(pwd)" >> $GITHUB_ENV
Expand Down
1 change: 1 addition & 0 deletions container/charliecloud/parpe_base/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ apt-get install -q -y \
libomp-dev \
nano \
python3-dev \
python3-numpy \
python3-pip \
python3-venv \
libspdlog-dev \
Expand Down
4 changes: 2 additions & 2 deletions container/charliecloud/parpe_base/install_parpe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ cmake \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DENABLE_PYTHON=ON \
-DBUILD_TESTS=OFF \
.. && make -j12
.. && make -j

# install fides optimizer
cd "$PARPE_BASE/ThirdParty" && ./installFides.sh
Expand Down Expand Up @@ -55,7 +55,7 @@ CC=mpicc CXX=mpiCC cmake \
-DTESTS_MPIEXEC_COMMAND="$mpi_cmd" \
..

make -j12 VERBOSE=1
make -j VERBOSE=1

# MPI settings for python tests
export PARPE_TESTS_MPIEXEC="mpiexec -n 5 --oversubscribe --allow-run-as-root --mca btl_vader_single_copy_mechanism none --mca btl ^openib --mca oob_tcp_if_include lo --mca btl_tcp_if_include lo --mca orte_base_help_aggregate 0"
Expand Down

0 comments on commit 19091bd

Please sign in to comment.