Skip to content

Commit

Permalink
Merge pull request #150 from jeroen/patch-1
Browse files Browse the repository at this point in the history
Deal with NA returns from detectCores
  • Loading branch information
astamm authored Apr 28, 2024
2 parents 1264f8c + e3bd2c7 commit f74ca93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/cmake_call.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

: ${R_HOME=$(R RHOME)}
RSCRIPT_BIN=${R_HOME}/bin/Rscript
NCORES=`${RSCRIPT_BIN} -e "cat(min(2, parallel::detectCores(logical = FALSE)))"`
NCORES=`${RSCRIPT_BIN} -e "cat(min(2, parallel::detectCores(logical = FALSE), na.rm=TRUE))"`

cd src

Expand Down

0 comments on commit f74ca93

Please sign in to comment.