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

Strange "out of memory" issue while generating #65

Open
danieleghisi opened this issue Feb 20, 2017 · 1 comment
Open

Strange "out of memory" issue while generating #65

danieleghisi opened this issue Feb 20, 2017 · 1 comment

Comments

@danieleghisi
Copy link

While generating with lines like this
gpu=1 net=checkpoints/experiment1_5_net_G.t7 th generate.lua
I'm getting a weird out-of-memory error:

THCudaCheck FAIL file=/tmp/luarocks_cutorch-scm-1-28/cutorch/init.c line=261 error=2 : out of memory

A quick nvidia-smi shows that the gpu I'm using has still ~11GB free.
Does anyone have a clue on why this might happen?

Thanks,
Daniele

@danieleghisi
Copy link
Author

Ok, I solved it: it happened with multiple GPUs.
Setting CUDA_VISIBLE_DEVICES=1 fixed it.

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

1 participant