{"action":"created","issue":{"url":"https://api.github.com/repos/pytorch/pytorch/issues/6939","repository_url":"https://api.github.com/repos/pytorch/pytorch","labels_url":"https://api.github.com/repos/pytorch/pytorch/issues/6939/labels{/name}","comments_url":"https://api.github.com/repos/pytorch/pytorch/issues/6939/comments","events_url":"https://api.github.com/repos/pytorch/pytorch/issues/6939/events","html_url":"https://github.com/pytorch/pytorch/issues/6939","id":317516782,"number":6939,"title":"Pytorch 0.4.0 failed build","user":{"login":"floringogianu","id":1670348,"avatar_url":"https://avatars3.githubusercontent.com/u/1670348?v=4","gravatar_id":"","url":"https://api.github.com/users/floringogianu","html_url":"https://github.com/floringogianu","followers_url":"https://api.github.com/users/floringogianu/followers","following_url":"https://api.github.com/users/floringogianu/following{/other_user}","gists_url":"https://api.github.com/users/floringogianu/gists{/gist_id}","starred_url":"https://api.github.com/users/floringogianu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/floringogianu/subscriptions","organizations_url":"https://api.github.com/users/floringogianu/orgs","repos_url":"https://api.github.com/users/floringogianu/repos","events_url":"https://api.github.com/users/floringogianu/events{/privacy}","received_events_url":"https://api.github.com/users/floringogianu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-04-25T07:54:31Z","updated_at":"2018-04-27T07:48:27Z","closed_at":"2018-04-25T08:15:13Z","author_association":"NONE","body":"## Issue description\r\nPytorch 0.4.0 build fails on an unsuported GPU (GeForce GTX 960M) when building `ATen_generated_SpectralOps.cu.o`\r\n\r\n```\r\n[ 51%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/native/cuda/ATen_generated_RoiPooling.cu.o\r\n[ 51%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/native/cuda/ATen_generated_SparseMM.cu.o\r\n/home/florin/Tools/pytorch40/aten/src/ATen/native/cuda/Embedding.cu(37): warning: function \"__any\"\r\n/usr/local/cuda/include/device_atomic_functions.h(180): here was declared deprecated (\"__any() is deprecated in favor of __any_sync() and may be removed in a future release (Use -Wno-deprecated-declarations to suppress this warning).\")\r\n\r\n[ 52%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/native/cuda/ATen_generated_SpectralOps.cu.o\r\n/usr/include/c++/6/tuple: In instantiation of ‘static constexpr bool std::_TC<<anonymous>, _Elements>::_MoveConstructibleTuple() [with _UElements = {std::tuple<at::Tensor&, at::Tensor&, at::Tensor&>}; bool <anonymous> = true; _Elements = {at::Tensor&, at::Tensor&, at::Tensor&}]’:\r\n\r\n...\r\n[see full log below]\r\n\r\nsrc/ATen/CMakeFiles/ATen.dir/build.make:1183: recipe for target 'src/ATen/CMakeFiles/ATen.dir/native/cuda/ATen_generated_SpectralOps.cu.o' failed\r\nmake[2]: *** [src/ATen/CMakeFiles/ATen.dir/native/cuda/ATen_generated_SpectralOps.cu.o] Error 1\r\nCMakeFiles/Makefile2:201: recipe for target 'src/ATen/CMakeFiles/ATen.dir/all' failed\r\nmake[1]: *** [src/ATen/CMakeFiles/ATen.dir/all] Error 2\r\nMakefile:129: recipe for target 'all' failed\r\nmake: *** [all] Error 2\r\n```\r\n## Code example\r\n\r\n[Full error_log](https://gist.github.com/floringogianu/29fc809f875e10270f80d673401c7324)\r\n\r\n## System Info\r\n- PyTorch: 0.4.0 200fb22b2\r\n- How you installed PyTorch: source (installation failed)\r\n- Build command you used:\r\n\r\n```\r\nexport CMAKE_PREFIX_PATH=/home/florin/Tools/anaconda3\r\nconda create -n torch40 python==3.6\r\nconda install numpy pyyaml mkl mkl-include setuptools cmake cffi typing\r\nconda install -c pytorch magma-cuda91\r\n\r\ngit checkout tags/v0.4.0\r\ngit submodule update --init\r\n\r\nexport LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/florin/Tools/anaconda3/envs/torch40/lib/ (it will not find mkl_64.so otherwise)\r\n\r\npython setup.py install\r\n```\r\n\r\n- OS: Ubuntu 17.10 x86_64\r\n- Python version: 3.6.0\r\n- CUDA/cuDNN version: release 9.1, V9.1.85 / cudnn 7.1 patchlevel 3\r\n- GPU models and configuration: GeForce GTX 960M - 390.48 \r\n- GCC version (if compiling from source): 6.4.0 (`gcc`, `g++`, `cc`, `c++`)\r\n- CMake version: 3.9.4 in /anaconda/envs/torch40/cmake\r\n- Versions of any other relevant libraries: `conda` 4.5.1\r\n"},"comment":{"url":"https://api.github.com/repos/pytorch/pytorch/issues/comments/384893386","html_url":"https://github.com/pytorch/pytorch/issues/6939#issuecomment-384893386","issue_url":"https://api.github.com/repos/pytorch/pytorch/issues/6939","id":384893386,"user":{"login":"floringogianu","id":1670348,"avatar_url":"https://avatars3.githubusercontent.com/u/1670348?v=4","gravatar_id":"","url":"https://api.github.com/users/floringogianu","html_url":"https://github.com/floringogianu","followers_url":"https://api.github.com/users/floringogianu/followers","following_url":"https://api.github.com/users/floringogianu/following{/other_user}","gists_url":"https://api.github.com/users/floringogianu/gists{/gist_id}","starred_url":"https://api.github.com/users/floringogianu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/floringogianu/subscriptions","organizations_url":"https://api.github.com/users/floringogianu/orgs","repos_url":"https://api.github.com/users/floringogianu/repos","events_url":"https://api.github.com/users/floringogianu/events{/privacy}","received_events_url":"https://api.github.com/users/floringogianu/received_events","type":"User","site_admin":false},"created_at":"2018-04-27T07:48:27Z","updated_at":"2018-04-27T07:48:27Z","author_association":"NONE","body":"Yeah, eventually I was able to compile it with `gcc 4.8.5` after fixing some headers and downloading some missing library, as discussed [here](https://medium.com/@Inoryy/compiling-pytorch-4-0-on-ubuntu-17-10-with-cuda-9-0-and-python-3-6-6769a0df56d5). \r\n\r\nWill try and build `gcc 5.5` at some point, I was not able to do that with `gcc 6.3`, there are some known issues with `gcc 6` and `Ubuntu 17.10`."}}
{"actor":{"display_login":"floringogianu"}}