Skip to content

Commit

Permalink
use nproc to get # of cores
Browse files Browse the repository at this point in the history
  • Loading branch information
cldellow committed Oct 5, 2024
1 parent 8287307 commit 2107305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tile-smush-parallel
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ trap kill_children INT

SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"

export SHARDS=16
export SHARDS=$(nproc)
for i in $(seq 0 $((SHARDS - 1))); do
SHARD=$i "${SCRIPT_DIR}"/tile-smush "$@" &
pids[${i}]=$!
Expand Down

0 comments on commit 2107305

Please sign in to comment.