Issue
By default, Bazel runs tests in a parallel fashion to speed things up. However, I have a resource (GPU) that can't handle parallel jobs due to the GPU memory limit. Is there a way to force Bazel to run tests in a serial, i.e., non-parallel way?
Thanks.
Solution
--jobs 1
will limit the number of parallel jobs Bazel runs to 1.
You can also modify the test targets and add tags = ["exclusive"]
to prevent specific test to run in parallel (see https://bazel.build/reference/test-encyclopedia).
Answered By - Damien Martin-Guillerez
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.