{"action":"created","issue":{"url":"https://api.github.com/repos/NVIDIA/flownet2-pytorch/issues/86","repository_url":"https://api.github.com/repos/NVIDIA/flownet2-pytorch","labels_url":"https://api.github.com/repos/NVIDIA/flownet2-pytorch/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/NVIDIA/flownet2-pytorch/issues/86/comments","events_url":"https://api.github.com/repos/NVIDIA/flownet2-pytorch/issues/86/events","html_url":"https://github.com/NVIDIA/flownet2-pytorch/issues/86","id":360388349,"node_id":"MDU6SXNzdWUzNjAzODgzNDk=","number":86,"title":"error in correlation_forward_cuda_kernel: no kernel image is available for execution on the device","user":{"login":"laaRaa","id":1902662,"node_id":"MDQ6VXNlcjE5MDI2NjI=","avatar_url":"https://avatars3.githubusercontent.com/u/1902662?v=4","gravatar_id":"","url":"https://api.github.com/users/laaRaa","html_url":"https://github.com/laaRaa","followers_url":"https://api.github.com/users/laaRaa/followers","following_url":"https://api.github.com/users/laaRaa/following{/other_user}","gists_url":"https://api.github.com/users/laaRaa/gists{/gist_id}","starred_url":"https://api.github.com/users/laaRaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laaRaa/subscriptions","organizations_url":"https://api.github.com/users/laaRaa/orgs","repos_url":"https://api.github.com/users/laaRaa/repos","events_url":"https://api.github.com/users/laaRaa/events{/privacy}","received_events_url":"https://api.github.com/users/laaRaa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-09-14T17:20:00Z","updated_at":"2018-12-23T08:19:42Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI installed all the dependencies and followed the steps that are listed to install and run flownet but I have the following error when using \"run_a_pair.py\" . Any ideas?\r\n\r\nThe parameters of the system are the following:\r\nCUDA: release 9.1, V9.1.85\r\nPYTORCH: 0.4.1\r\nUBUNTU: Ubuntu 18.04 LTS\r\nPYTHON: 3.6.5\r\n\r\nThanks!\r\n\r\npython3 run_a_pair.py\r\nerror in correlation_forward_cuda_kernel: no kernel image is available for execution on the device\r\nTraceback (most recent call last):\r\n  File \"run_a_pair.py\", line 31, in <module>\r\n    result = net(im).squeeze()\r\n  File \"/home/raad/.local/lib/python3.6/site-packages/torch/nn/modules/module.py\", line 477, in __call__\r\n    result = self.forward(*input, **kwargs)\r\n  File \"/home/raad/flownet2-pytorch_python3/models.py\", line 118, in forward\r\n    flownetc_flow2 = self.flownetc(x)[0]\r\n  File \"/home/raad/.local/lib/python3.6/site-packages/torch/nn/modules/module.py\", line 477, in __call__\r\n    result = self.forward(*input, **kwargs)\r\n  File \"/home/raad/flownet2-pytorch_python3/networks/FlowNetC.py\", line 86, in forward\r\n    out_corr = self.corr(out_conv3a, out_conv3b) # False\r\n  File \"/home/raad/.local/lib/python3.6/site-packages/torch/nn/modules/module.py\", line 477, in __call__\r\n    result = self.forward(*input, **kwargs)\r\n  File \"/home/raad/flownet2-pytorch_python3/networks/correlation_package/correlation.py\", line 59, in forward\r\n    result = CorrelationFunction(self.pad_size, self.kernel_size, self.max_displacement,self.stride1, self.stride2, self.corr_multiply)(input1, input2)\r\n  File \"/home/raad/flownet2-pytorch_python3/networks/correlation_package/correlation.py\", line 27, in forward\r\n    self.pad_size, self.kernel_size, self.max_displacement,self.stride1, self.stride2, self.corr_multiply)\r\nRuntimeError: CUDA call failed (correlation_forward_cuda at correlation_cuda.cc:79)\r\nframe #0: <unknown function> + 0x135a7 (0x7f64fe8845a7 in /home/raad/local/lib/python3.6/site-packages/correlation_cuda-0.0.0-py3.6-linux-x86_64.egg/correlation_cuda.cpython-36m-x86_64-linux-gnu.so)\r\nframe #1: <unknown function> + 0x102ef (0x7f64fe8812ef in /home/raad/local/lib/python3.6/site-packages/correlation_cuda-0.0.0-py3.6-linux-x86_64.egg/correlation_cuda.cpython-36m-x86_64-linux-gnu.so)\r\nframe #2: _PyCFunction_FastCallKeywords + 0x26b (0x4c549b in python3)\r\nframe #3: python3() [0x54ffe4]\r\nframe #4: _PyEval_EvalFrameDefault + 0x362f (0x5546cf in python3)\r\nframe #5: python3() [0x54f0e8]\r\nframe #6: _PyFunction_FastCallDict + 0x2a2 (0x558ef2 in python3)\r\nframe #7: _PyObject_Call_Prepend + 0x231 (0x45a461 in python3)\r\nframe #8: PyObject_Call + 0x3e (0x459eee in python3)\r\nframe #9: THPFunction_do_forward(THPFunction*, _object*) + 0x2ad (0x7f652c26fc3d in /home/raad/.local/lib/python3.6/site-packages/torch/_C.cpython-36m-x86_64-linux-gnu.so)\r\nframe #10: PyCFunction_Call + 0xbd (0x4c517d in python3)\r\nframe #11: PyObject_Call + 0x3e (0x459eee in python3)\r\nframe #12: python3() [0x4e0e9b]\r\nframe #13: _PyObject_FastCallDict + 0xa3 (0x45a0e3 in python3)\r\nframe #14: python3() [0x54fd37]\r\nframe #15: _PyEval_EvalFrameDefault + 0x362f (0x5546cf in python3)\r\nframe #16: python3() [0x54f0e8]\r\nframe #17: _PyFunction_FastCallDict + 0x2a2 (0x558ef2 in python3)\r\nframe #18: _PyObject_Call_Prepend + 0x231 (0x45a461 in python3)\r\nframe #19: PyObject_Call + 0x3e (0x459eee in python3)\r\nframe #20: _PyEval_EvalFrameDefault + 0x1ba9 (0x552c49 in python3)\r\nframe #21: python3() [0x54fbe1]\r\nframe #22: _PyFunction_FastCallDict + 0x1c9 (0x558e19 in python3)\r\nframe #23: _PyObject_Call_Prepend + 0x231 (0x45a461 in python3)\r\nframe #24: PyObject_Call + 0x3e (0x459eee in python3)\r\nframe #25: python3() [0x4e0e9b]\r\nframe #26: _PyObject_FastCallDict + 0xa3 (0x45a0e3 in python3)\r\nframe #27: python3() [0x54fd37]\r\nframe #28: _PyEval_EvalFrameDefault + 0x362f (0x5546cf in python3)\r\nframe #29: python3() [0x54f0e8]\r\nframe #30: _PyFunction_FastCallDict + 0x2a2 (0x558ef2 in python3)\r\nframe #31: _PyObject_Call_Prepend + 0x231 (0x45a461 in python3)\r\nframe #32: PyObject_Call + 0x3e (0x459eee in python3)\r\nframe #33: _PyEval_EvalFrameDefault + 0x1ba9 (0x552c49 in python3)\r\nframe #34: python3() [0x54fbe1]\r\nframe #35: _PyFunction_FastCallDict + 0x1c9 (0x558e19 in python3)\r\nframe #36: _PyObject_Call_Prepend + 0x231 (0x45a461 in python3)\r\nframe #37: PyObject_Call + 0x3e (0x459eee in python3)\r\nframe #38: python3() [0x4e0e9b]\r\nframe #39: _PyObject_FastCallDict + 0xa3 (0x45a0e3 in python3)\r\nframe #40: python3() [0x54fd37]\r\nframe #41: _PyEval_EvalFrameDefault + 0x362f (0x5546cf in python3)\r\nframe #42: python3() [0x54f0e8]\r\nframe #43: _PyFunction_FastCallDict + 0x2a2 (0x558ef2 in python3)\r\nframe #44: _PyObject_Call_Prepend + 0x231 (0x45a461 in python3)\r\nframe #45: PyObject_Call + 0x3e (0x459eee in python3)\r\nframe #46: _PyEval_EvalFrameDefault + 0x1ba9 (0x552c49 in python3)\r\nframe #47: python3() [0x54fbe1]\r\nframe #48: _PyFunction_FastCallDict + 0x1c9 (0x558e19 in python3)\r\nframe #49: _PyObject_Call_Prepend + 0x231 (0x45a461 in python3)\r\nframe #50: PyObject_Call + 0x3e (0x459eee in python3)\r\nframe #51: python3() [0x4e0e9b]\r\nframe #52: _PyObject_FastCallDict + 0xa3 (0x45a0e3 in python3)\r\nframe #53: python3() [0x54fd37]\r\nframe #54: _PyEval_EvalFrameDefault + 0x362f (0x5546cf in python3)\r\nframe #55: python3() [0x54fbe1]\r\nframe #56: PyEval_EvalCode + 0x23 (0x550b93 in python3)\r\nframe #57: PyRun_FileExFlags + 0x169 (0x42b519 in python3)\r\nframe #58: PyRun_SimpleFileExFlags + 0xe5 (0x42b705 in python3)\r\nframe #59: Py_Main + 0xccb (0x441fcb in python3)\r\nframe #60: main + 0x184 (0x421ff4 in python3)\r\nframe #61: __libc_start_main + 0xe7 (0x7f65408fab97 in /lib/x86_64-linux-gnu/libc.so.6)\r\nframe #62: _start + 0x2a (0x4220aa in python3)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/NVIDIA/flownet2-pytorch/issues/comments/449621437","html_url":"https://github.com/NVIDIA/flownet2-pytorch/issues/86#issuecomment-449621437","issue_url":"https://api.github.com/repos/NVIDIA/flownet2-pytorch/issues/86","id":449621437,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTYyMTQzNw==","user":{"login":"huangbiubiu","id":9823705,"node_id":"MDQ6VXNlcjk4MjM3MDU=","avatar_url":"https://avatars1.githubusercontent.com/u/9823705?v=4","gravatar_id":"","url":"https://api.github.com/users/huangbiubiu","html_url":"https://github.com/huangbiubiu","followers_url":"https://api.github.com/users/huangbiubiu/followers","following_url":"https://api.github.com/users/huangbiubiu/following{/other_user}","gists_url":"https://api.github.com/users/huangbiubiu/gists{/gist_id}","starred_url":"https://api.github.com/users/huangbiubiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huangbiubiu/subscriptions","organizations_url":"https://api.github.com/users/huangbiubiu/orgs","repos_url":"https://api.github.com/users/huangbiubiu/repos","events_url":"https://api.github.com/users/huangbiubiu/events{/privacy}","received_events_url":"https://api.github.com/users/huangbiubiu/received_events","type":"User","site_admin":false},"created_at":"2018-12-23T08:19:42Z","updated_at":"2018-12-23T08:19:42Z","author_association":"NONE","body":"Problem fixed.\r\nI think just add `'-gencode', 'arch=compute_xx,code=sm_xx'` to `nvcc_args` can fix the problem. If the problem still exists after adding the line, please check as follows:\r\n\r\n- Make sure you modified all 3 `setup.py` files in 3 packages: `channelnorm_package`, `correlation_package` and `resample2d_package`\r\n- Make sure you have removed all intermedia files, including `__pycache__/`, `dist/`, `*.egg-info`, `build/`. Python will install with these files without recompiling if they have existed."}}
{"actor":{"display_login":"huangbiubiu"}}