Skip to content

Commit 83ad829

Browse files
committed
Use correct command to find number of cores on MacOS
1 parent 3ed37f5 commit 83ad829

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ci/fpm-deployment.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ fypp="${FYPP:-$(which fypp)}"
1212
fyflags="${FYFLAGS:--DMAXRANK=4}"
1313

1414
# Number of parallel jobs for preprocessing
15-
njob="$(nproc)"
15+
if [ $(uname) = "Darwin" ]; then
16+
njob="$(sysctl -n hw.ncpu)"
17+
else
18+
njob="$(nproc)"
19+
fi
1620

1721
# Additional files to include
1822
include=(

0 commit comments

Comments
 (0)