[PATCH] D28789: [lit] Support sharding testsuites, for parallel execution.

Graydon Hoare via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 16 17:27:45 PST 2017

graydon created this revision.
Herald added a reviewer: modocache.

This change equips lit.py with two new options, --num-shards=M and
--run-shard=N (set by default from env vars LIT_NUM_SHARDS and LIT_RUN_SHARD).

The options must be used together, and N must be in 0..M-1.

Together these options effect only test selection: they partition the testsuite
into M equal-sized "shards", then select only the Nth shard. They can be used
in a cluster of test machines to achieve a very crude (static) form of
parallelism, with minimal configuration work.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28789.84615.patch
Type: text/x-patch
Size: 8272 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170117/844a4c08/attachment.bin>

More information about the llvm-commits mailing list