Skip to content
New issue

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

RuntimeError: CUDA out of memory. #19

Closed
KiAlexander opened this issue Nov 11, 2019 · 4 comments
Closed

RuntimeError: CUDA out of memory. #19

KiAlexander opened this issue Nov 11, 2019 · 4 comments

Comments

@KiAlexander
Copy link

even set batch_size = 3 as default with 3 GPU , I still get the following error, I wanna know how can I solve the problem now?

RuntimeError: CUDA out of memory. Tried to allocate 18.75 MiB (GPU 0; 11.90 GiB total capacity; 9.54 GiB already allocated; 9.00 MiB free; 159.98 MiB cached)

+-------------------------------+----------------------+----------------------+
| 1 TITAN X (Pascal) Off | 00000000:02:00.0 Off | N/A |
| 25% 44C P8 11W / 250W | 2MiB / 12189MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 2 TITAN X (Pascal) Off | 00000000:03:00.0 Off | N/A |
| 23% 39C P8 9W / 250W | 2MiB / 12189MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 3 TITAN X (Pascal) Off | 00000000:04:00.0 Off | N/A |
| 23% 36C P8 9W / 250W | 2MiB / 12189MiB | 0% Default |
+-------------------------------+----------------------+----------------------+

@KiAlexander
Copy link
Author

btw, the sample rate =16000 instead 8000 , is it the reason for the error?

@mpariente
Copy link

Did you set id=0,1,2 in the run.sh ?

@KiAlexander
Copy link
Author

KiAlexander commented Nov 12, 2019

yes, i idid

+-------------------------------+----------------------+----------------------+
| 1 TITAN X (Pascal) Off | 00000000:02:00.0 Off | N/A |
| 25% 44C P8 11W / 250W | 2MiB / 12189MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 2 TITAN X (Pascal) Off | 00000000:03:00.0 Off | N/A |
| 23% 39C P8 9W / 250W | 2MiB / 12189MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 3 TITAN X (Pascal) Off | 00000000:04:00.0 Off | N/A |
| 23% 36C P8 9W / 250W | 2MiB / 12189MiB | 0% Default |
+-------------------------------+----------------------+----------------------+

the above infomation is to show the condition of the GPU I used , insted of the usage of GPU

@mpariente
Copy link

Did you experience the same problem with a sample rate of 8k?
With 16k you'll need twice as much memory.

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

No branches or pull requests

2 participants