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

IuException: CUDA Error: out of memory #4

Open
grandyang opened this issue Oct 16, 2018 · 1 comment
Open

IuException: CUDA Error: out of memory #4

grandyang opened this issue Oct 16, 2018 · 1 comment

Comments

@grandyang
Copy link

Hi Patrick

I tried the example command line "./stereo_img --im0 ../data/im0.png --im1 ../data/im1.png", but got the following error:
terminate called after throwing an instance of 'IuCudaException'
what(): IuException: CUDA Error: out of memory
where: /home/xiaochenyang/cnn-crf-stereo/dependencies/imageutilities/include/iu/iucore/lineardevicememory.h | LinearDeviceMemory:60
Aborted (core dumped)

I thought maybe my GPU (nvs 310) is low-level that does not have enough memory to run the code. However, I was wondering do you have any parameter that can adjust batch size so that it can run on low memory GPU. By the way, is there any memory limit to run this code?

Thanks a lot!

@pknoebelreiter
Copy link
Member

Hi,
for running the code you will need ~3GB GPU memory for the 3 layer CNN and ~5GB GPU memory for the 7 layer CNN. The batch size is always 1 for this implementation. If I am not wrong your card has only 1GB memory, which is not enough. The only thing you could try to reduce the memory footprint is reducing the input image size and/or using less disparity steps, e.g. 64 instead of 128.

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