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

Cuda memory error #20

Closed
chenyu-lii opened this issue May 13, 2021 · 3 comments
Closed

Cuda memory error #20

chenyu-lii opened this issue May 13, 2021 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@chenyu-lii
Copy link

Hi Lijun,

When I try to run the detection on 1 day continuous data, I get the following error,

Traceback (most recent call last):
File "deployment2.py", line 87, in
pick_results = pick(waveform, 100, 20, model, transform, 0.1, batch_size=1000)
...
RuntimeError: CUDA out of memory. Tried to allocate 67.46 GiB (GPU 0; 31.72 GiB total capacity; 12.07 GiB already allocated; 18.40 GiB free; 12.07 GiB reserved in total by PyTorch)

Is there any way to reduce the required memory?

Thank you!
Chenyu

@lijunzh
Copy link
Member

lijunzh commented May 13, 2021

@chenyuli1992 Can you share the code that you try to do detection on? It seems that our data volume is larger than 32GB (the GPU RAM capacity). I would guess that you put the entire continuous data in the CPIC detector. If so, you can easily reduce the memory cost by breaking them into small pieces, say one-hour segments. If you have trouble writing the code to break the continuous signal, sent me an example data piece, I will write a sample code for you.

@lijunzh lijunzh self-assigned this May 13, 2021
@lijunzh lijunzh added the question Further information is requested label May 13, 2021
@chenyu-lii
Copy link
Author

@lijunzh I used the example code sent by Lindsay before, it is using 1-day continuous data, I will try to break the data to smaller pieces. Thank you!

@lijunzh
Copy link
Member

lijunzh commented May 13, 2021

@chenyuli1992 This reminds me that we should have a sample code built-in for people who need to do deployment on continuous data. I will look into @Lchuang 's code and see where to put it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants