Skip to content

Commit 36b2eb4

Browse files
committed
doc(//tests): Add suggested settings for running the full test suite so
as to not exhaust GPU memory Signed-off-by: Naren Dasan <[email protected]> Signed-off-by: Naren Dasan <[email protected]>
1 parent ccab7b9 commit 36b2eb4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Tests
2+
3+
Right now there are two types of tests. Converter level tests and Module level tests.
4+
5+
The goal of Converter tests are to tests individual converters againsts specific subgraphs. The current tests in `core/conveters` are good examples on how to write these tests. In general every converter should have at least 1 test. More may be required if the operation has switches that change the behavior of the op.
6+
7+
Module tests are designed to test the compiler against common network architectures and verify the integration of converters together into a single engine.
8+
9+
You can run the whole test suite with bazel. But be aware you may exhaust GPU memory (this may be seen as a cuDNN initialization error) running them naively, you therefore may need to limit the number of concurrent tests. Also because the inputs to tests are random it may make sense to run tests a few times.
10+
11+
Here are some settings that work well the current test suite on a TITAN V.
12+
13+
```
14+
bazel test //tests --compilation_mode=dbg --test_output=errors --jobs=4 --runs_per_test=5
15+
```

0 commit comments

Comments
 (0)