{"action":"created","issue":{"url":"https://api.github.com/repos/chuanli11/MGANs/issues/1","repository_url":"https://api.github.com/repos/chuanli11/MGANs","labels_url":"https://api.github.com/repos/chuanli11/MGANs/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/chuanli11/MGANs/issues/1/comments","events_url":"https://api.github.com/repos/chuanli11/MGANs/issues/1/events","html_url":"https://github.com/chuanli11/MGANs/issues/1","id":149619452,"number":1,"title":"Out of memory","user":{"login":"hertzmann","id":5560050,"avatar_url":"https://avatars.githubusercontent.com/u/5560050?v=3","gravatar_id":"","url":"https://api.github.com/users/hertzmann","html_url":"https://github.com/hertzmann","followers_url":"https://api.github.com/users/hertzmann/followers","following_url":"https://api.github.com/users/hertzmann/following{/other_user}","gists_url":"https://api.github.com/users/hertzmann/gists{/gist_id}","starred_url":"https://api.github.com/users/hertzmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hertzmann/subscriptions","organizations_url":"https://api.github.com/users/hertzmann/orgs","repos_url":"https://api.github.com/users/hertzmann/repos","events_url":"https://api.github.com/users/hertzmann/events{/privacy}","received_events_url":"https://api.github.com/users/hertzmann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-20T00:27:53Z","updated_at":"2016-04-20T07:18:48Z","closed_at":null,"body":"I'm getting out-of-memory errors whenever I try running `demo_MGANs.lua` with opt.max_length > 128, even though the Readme says it should work for much larger image sizes. I'm running on a machine with 4 Titan-X's with 12Gb each. Here's the error message with opt.maxlength=256:\r\n\r\n```\r\nth demo_MGANs.lua \r\nmkdir: cannot create directory ‘output/’: File exists\r\n*****************************************************\t\r\nTesting: \t\r\n*****************************************************\t\r\nTHCudaCheck FAIL file=/tmp/luarocks_cutorch-scm-1-4622/cutorch/lib/THC/generic/THCStorage.cu line=41 error=2 : out of memory\r\n/home/hertzman/torch/install/bin/luajit: /home/hertzman/torch/install/share/lua/5.1/nn/Container.lua:69: \r\nIn 25 module of nn.Sequential:\r\n/home/hertzman/torch/install/share/lua/5.1/nn/THNN.lua:109: cuda runtime error (2) : out of memory at /tmp/luarocks_cutorch-scm-1-4622/cutorch/lib/THC/generic/THCStorage.cu:41\r\nstack traceback:\r\n\t[C]: in function 'v'\r\n\t/home/hertzman/torch/install/share/lua/5.1/nn/THNN.lua:109: in function 'SpatialFullConvolution_updateOutput'\r\n\t...orch/install/share/lua/5.1/nn/SpatialFullConvolution.lua:74: in function <...orch/install/share/lua/5.1/nn/SpatialFullConvolution.lua:68>\r\n\t[C]: in function 'xpcall'\r\n\t/home/hertzman/torch/install/share/lua/5.1/nn/Container.lua:65: in function 'rethrowErrors'\r\n\t...e/hertzman/torch/install/share/lua/5.1/nn/Sequential.lua:44: in function 'forward'\r\n\tdemo_MGANs.lua:57: in main chunk\r\n\t[C]: in function 'dofile'\r\n\t...zman/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk\r\n\t[C]: at 0x00406670\r\n```\r\n\r\nI'm new to Torch; sorry if this is a newbie question. Can you help?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/chuanli11/MGANs/issues/comments/212294948","html_url":"https://github.com/chuanli11/MGANs/issues/1#issuecomment-212294948","issue_url":"https://api.github.com/repos/chuanli11/MGANs/issues/1","id":212294948,"user":{"login":"chuanli11","id":15967400,"avatar_url":"https://avatars.githubusercontent.com/u/15967400?v=3","gravatar_id":"","url":"https://api.github.com/users/chuanli11","html_url":"https://github.com/chuanli11","followers_url":"https://api.github.com/users/chuanli11/followers","following_url":"https://api.github.com/users/chuanli11/following{/other_user}","gists_url":"https://api.github.com/users/chuanli11/gists{/gist_id}","starred_url":"https://api.github.com/users/chuanli11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chuanli11/subscriptions","organizations_url":"https://api.github.com/users/chuanli11/orgs","repos_url":"https://api.github.com/users/chuanli11/repos","events_url":"https://api.github.com/users/chuanli11/events{/privacy}","received_events_url":"https://api.github.com/users/chuanli11/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T07:18:48Z","updated_at":"2016-04-20T07:18:48Z","body":"Hi, @hertzmann  \r\n\r\nFirst try \"nvidia-smi -l\" as austingg suggested. It tells you the memory usage of each gpu (should see a clear increase memory usage on one titan), and the exact usage of each process (look for a process name that has \"luajit\" in it).\r\n\r\nIf none of your titans is doing the job, try to explicitly assign the task to one of them by changing the value of \"opt.gpu\". I only have one TitanX so the value is set to one. Your problem could be caused by multilple gpus, especially if there happens to be another small card in the box.\r\n\r\n"}}