You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.
...
cudaGetDeviceProperties() failed with error #3
...
return get_devices()[int(device_id)]
IndexError: list index out of range
...
gunicorn does a fork of the DIGITS server, and the server creates a CUDA context in the parent before forking. Then, when the child tries to call cudaGetDevicesProperties(), it fails with an initialization error. We need to make sure we don't make any CUDA calls in the DIGITS server before forking when running with gunicorn, if possible.
The text was updated successfully, but these errors were encountered:
To reproduce:
force_reload
toTrue
heredigits-server
After Add some more error checking in device_query #844, you should see this error in the server output:
gunicorn does a fork of the DIGITS server, and the server creates a CUDA context in the parent before forking. Then, when the child tries to call
cudaGetDevicesProperties()
, it fails with an initialization error. We need to make sure we don't make any CUDA calls in the DIGITS server before forking when running with gunicorn, if possible.The text was updated successfully, but these errors were encountered: