We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug When tests are run with pytest --forked per the instructions in /test/README.md, a large number of tests fail with the error:
RuntimeError: Cannot re-initialize CUDA in forked subprocess. To use CUDA with multiprocessing, you must use the 'spawn' start method
This appears to be a problem with the way tests are run in subprocesses. It makes testing, and therefore development on the library, rather difficult.
To Reproduce Steps to reproduce the behavior:
cd /tests
pytest --forked
Expected behavior Tests pass, or fail for reasons to do with the code in the tests themselves.
Proposed solution I have no idea.
Environment (please complete the following information):
Additional context forked-report.zip Attached html report of the failures on the tests
The text was updated successfully, but these errors were encountered:
Currently sidestepping this with #1149 until we have time to more properly resolve the issue with launching CUDA in forked processes.
Some tests are back, all are cleaned a bit, and model training tests are skipped for now.
Sorry, something went wrong.
No branches or pull requests
Describe the bug
When tests are run with pytest --forked per the instructions in /test/README.md, a large number of tests fail with the error:
RuntimeError: Cannot re-initialize CUDA in forked subprocess. To use CUDA with multiprocessing, you must use the 'spawn' start method
This appears to be a problem with the way tests are run in subprocesses. It makes testing, and therefore development on the library, rather difficult.
To Reproduce
Steps to reproduce the behavior:
cd /tests
pytest --forked
Expected behavior
Tests pass, or fail for reasons to do with the code in the tests themselves.
Proposed solution
I have no idea.
Environment (please complete the following information):
Additional context
forked-report.zip
Attached html report of the failures on the tests
The text was updated successfully, but these errors were encountered: