Skip to content

[ci] Invoke tensorflow tests individually#10198

Merged
masahi merged 2 commits intoapache:mainfrom
driazati:tensorflow2
Feb 10, 2022
Merged

[ci] Invoke tensorflow tests individually#10198
masahi merged 2 commits intoapache:mainfrom
driazati:tensorflow2

Conversation

@driazati
Copy link
Member

@driazati driazati commented Feb 9, 2022

This loops through and invokes all the tensorflow tests individually rather than in a single Python process. This should have the OS clean up tensorflow's CPU/GPU memory usage between each test and reduce flakiness, at the cost of some runtime overhead (which we could maybe remove in the future with some caching inside pytest, but it's small compared to the test time)

cc @areusch @mbrookhart @masahi

@driazati driazati changed the title tensorflow2 ci] Invoke tensorflow tests individually Feb 9, 2022
@driazati driazati changed the title ci] Invoke tensorflow tests individually [ci] Invoke tensorflow tests individually Feb 9, 2022
masahi pushed a commit that referenced this pull request Feb 10, 2022
This is another (simpler) attempt at #10151 to avoid CUDA issues with tensorflow tests. This should work by cleaning up any reserved GPU memory by tearing down the whole process that has imported tensorflow each time a test is run.
Copy of #10197 but using a pytest plugin instead of manually grepping through test files
@driazati driazati marked this pull request as ready for review February 10, 2022 03:59
@masahi masahi merged commit cdd494a into apache:main Feb 10, 2022
alnah005 pushed a commit to alnah005/tvm that referenced this pull request Feb 10, 2022
* [ci] Invoke tensorflow tests individually

This is another (simpler) attempt at apache#10151 to avoid CUDA issues with tensorflow tests. This should work by cleaning up any reserved GPU memory by tearing down the whole process that has imported tensorflow each time a test is run.

* [ci] Invoke tensorflow tests individually

Copy of apache#10197 but using a pytest plugin instead of manually grepping through test files

Co-authored-by: driazati <driazati@users.noreply.github.com>
ylc pushed a commit to ylc/tvm that referenced this pull request Feb 16, 2022
ylc pushed a commit to ylc/tvm that referenced this pull request Feb 16, 2022
* [ci] Invoke tensorflow tests individually

This is another (simpler) attempt at apache#10151 to avoid CUDA issues with tensorflow tests. This should work by cleaning up any reserved GPU memory by tearing down the whole process that has imported tensorflow each time a test is run.

* [ci] Invoke tensorflow tests individually

Copy of apache#10197 but using a pytest plugin instead of manually grepping through test files

Co-authored-by: driazati <driazati@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants