Skip to content

Commit e566a24

Browse files
committed
Remove VERIFICATION_THREAD_COUNT
kani -j with no arguments defaults to the number of CPUs, so no need for a fixed number
1 parent b38f871 commit e566a24

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

scripts/run-kani.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,12 @@ BRANCH_NAME=${KANI_BRANCH_NAME:-$DEFAULT_BRANCH_NAME}
8181
# When we say "parallel," we mean two dimensions of parallelization:
8282
# 1. Sharding verification across multiple workers. The Kani workflow that calls this script defines WORKER_INDEX and WORKER_TOTAL for this purpose:
8383
# we shard verification across WORKER_TOTAL workers, where each worker has a unique WORKER_INDEX that it uses to derive its share of ALL_HARNESSES to verify.
84-
# 2. Within a single worker, we parallelize verification between multiple cores by invoking kani with -j VERIFICATION_THREAD_COUNT.
85-
# For now, VERIFICATION_THREAD_COUNT=4 since the Kani workflow runs on standard Github runners, which have 3-4 cores.
86-
# TODO: If we move to larger runners, we should increase this number.
84+
# 2. Within a single worker, we parallelize verification between multiple cores by invoking kani with -j.
8785

8886
# Array of all of the harnesses in the repository, set in get_harnesses()
8987
declare -a ALL_HARNESSES
9088
# Length of ALL_HARNESSES, set in get_harnesses()
9189
declare -i HARNESS_COUNT
92-
# Number of threads to spawn within a single worker to run Kani.
93-
declare -i VERIFICATION_THREAD_COUNT=4
9490

9591
# Function to read commit ID from TOML file
9692
read_commit_from_toml() {
@@ -206,7 +202,7 @@ run_verification_subset() {
206202
-Z float-lib \
207203
-Z c-ffi \
208204
$harness_args --exact \
209-
-j $VERIFICATION_THREAD_COUNT \
205+
-j \
210206
--output-format=terse \
211207
$command_args \
212208
--enable-unstable \

0 commit comments

Comments
 (0)