Skip to content

Commit

Permalink
Simplify thread setting
Browse files Browse the repository at this point in the history
  • Loading branch information
william-dawson committed Nov 15, 2023
1 parent 8a9b591 commit 316798f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
debug: 0
noalligather: 0
mpich: 0
threadoff: 0
numthread: 1
elsi: 0
- name: ubuntu-debug
os: ubuntu-latest
Expand All @@ -27,7 +27,7 @@ jobs:
debug: 1
noalligather: 0
mpich: 0
threadoff: 0
numthread: 1
elsi: 0
- name: ubuntu-nogather
os: ubuntu-latest
Expand All @@ -37,7 +37,7 @@ jobs:
debug: 0
noalligather: 1
mpich: 0
threadoff: 0
numthread: 1
elsi: 0
- name: ubuntu-mpich
os: ubuntu-latest
Expand All @@ -47,7 +47,7 @@ jobs:
debug: 0
noalligather: 0
mpich: 1
threadoff: 0
numthread: 3
elsi: 0
- name: mac-thread-cap
os: macos-latest
Expand All @@ -57,7 +57,7 @@ jobs:
debug: 0
noalligather: 0
mpich: 0
threadoff: 1
numthread: 3
elsi: 0
- name: mac
os: macos-latest
Expand All @@ -68,7 +68,7 @@ jobs:
noalligather: 0
mpich: 0
lint: 1
threadoff: 0
numthread: 3
elsi: 1
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -92,7 +92,7 @@ jobs:
env:
MAKETEST: ${{ matrix.maketest }}
TESTOS: ${{ matrix.testos }}
THREADOFF: ${{ matrix.threadoff }}
OMP_NUM_THREADS: ${{ matrix.num_thread }}
- name: check examples
run: |
bash -l UnitTests/check_examples.sh
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
################################################################################
## Basic Setup
cmake_minimum_required (VERSION 3.9)
project(NTPoly VERSION 2.7.0 DESCRIPTION
project(NTPoly VERSION 3.1.0 DESCRIPTION
"A parallel library for computing the functions of sparse matrices")
enable_language(Fortran)

Expand Down
8 changes: 1 addition & 7 deletions UnitTests/run_ci_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,7 @@ if [[ "$TESTOS" == "LINUX" ]]; then
conda activate ntpoly-conda
fi

if [[ "$THREADOFF" == "1" ]]; then
export OMP_NUM_THREADS=1
echo "Setting threads to 1"
else
export OMP_NUM_THREADS=2
echo "Setting threads to 2"
fi
echo "Setting threads to $OMP_NUM_THREADS"

cd Build
export CTEST_OUTPUT_ON_FAILURE=1
Expand Down

0 comments on commit 316798f

Please sign in to comment.