Skip to content

Commit

Permalink
Use equivalent nprocs for MacOS (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
peremato authored Dec 22, 2024
1 parent 5168a24 commit 236dac1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion test/TestPropagation/compileandtest
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

ncores=`nproc`
if [[ "$(uname)" == "Darwin" ]]; then
ncores=`sysctl -n hw.ncpu`
else
ncores=`nproc`
fi

make -j "$ncores" test
6 changes: 5 additions & 1 deletion test/TestVarField/compileandrun
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

ncores=`nproc`
if [[ "$(uname)" == "Darwin" ]]; then
ncores=`sysctl -n hw.ncpu`
else
ncores=`nproc`
fi

make -j "$ncores" test

0 comments on commit 236dac1

Please sign in to comment.