Skip to content

Commit

Permalink
Deal with NA returns from detectCores
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen authored Jan 15, 2024
1 parent 1264f8c commit 72c3a42
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, na.omit(parallel::detectCores(logical = FALSE))))"`

cd src

Expand Down

0 comments on commit 72c3a42

Please sign in to comment.