{"action":"opened","issue":{"url":"https://api.github.com/repos/pytorch/pytorch/issues/7083","repository_url":"https://api.github.com/repos/pytorch/pytorch","labels_url":"https://api.github.com/repos/pytorch/pytorch/issues/7083/labels{/name}","comments_url":"https://api.github.com/repos/pytorch/pytorch/issues/7083/comments","events_url":"https://api.github.com/repos/pytorch/pytorch/issues/7083/events","html_url":"https://github.com/pytorch/pytorch/issues/7083","id":318769665,"number":7083,"title":"Pytorch build finds local libs instead of conda versions","user":{"login":"meder411","id":6818607,"avatar_url":"https://avatars0.githubusercontent.com/u/6818607?v=4","gravatar_id":"","url":"https://api.github.com/users/meder411","html_url":"https://github.com/meder411","followers_url":"https://api.github.com/users/meder411/followers","following_url":"https://api.github.com/users/meder411/following{/other_user}","gists_url":"https://api.github.com/users/meder411/gists{/gist_id}","starred_url":"https://api.github.com/users/meder411/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meder411/subscriptions","organizations_url":"https://api.github.com/users/meder411/orgs","repos_url":"https://api.github.com/users/meder411/repos","events_url":"https://api.github.com/users/meder411/events{/privacy}","received_events_url":"https://api.github.com/users/meder411/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-30T01:47:33Z","updated_at":"2018-04-30T01:47:33Z","closed_at":null,"author_association":"NONE","body":"\r\n## Code example\r\n\r\nI've followed the installation instructions for a Conda build on Linux:\r\n\r\n```\r\nexport CMAKE_PREFIX_PATH=\"$(dirname $(which conda))/../\" # [anaconda root directory]\r\n\r\n# Install basic dependencies\r\nconda install numpy pyyaml mkl mkl-include setuptools cmake cffi typing\r\n\r\n# Add LAPACK support for the GPU\r\nconda install -c pytorch magma-cuda80 # or magma-cuda90 if CUDA 9\r\n\r\ngit clone --recursive https://github.com/pytorch/pytorch\r\ncd pytorch\r\n\r\npython setup.py install\r\n```\r\n\r\nbut I get an import error for MKL:\r\n\r\n> ImportError: /usr/local/lib/libmkl_gf_lp64.so: undefined symbol: mkl_lapack_ao_zgetrf\r\n\r\nwhen I try to import torch in Python.\r\n\r\nThis seems to be because during the build it links to the /usr/local/lib version rather than the anaconda version. I've set the CMAKE_PREFIX_PATH env variable (as above) as well as set LD_LIBRARY_PATH to include the anaconda lib directory (`/usr/local/anaconda2/lib`). I've also added a conda.conf file to my `/etc/ld.so.conf.d/` directory and ran `sudo ldconfig` to source the changes.\r\n\r\nI'm not quite sure what else I can do to indicate to the install to find the libraries in anacadona.\r\n\r\nIs there a step I'm missing?\r\n\r\n\r\n- PyTorch or Caffe2: PyTorch\r\n- How you installed PyTorch (conda, pip, source): dependencies through conda, PyTorch from source\r\n- Build command you used (if compiling from source): (above)\r\n- OS: Ubuntu 16.04\r\n- PyTorch version: source\r\n- Python version: 2.7\r\n- CUDA/cuDNN version: 9.0\r\n- GPU models and configuration: Not relevant\r\n- GCC version (if compiling from source): 5.4.0\r\n- CMake version: 3.9.4\r\n- Versions of any other relevant libraries: I ran `conda install mkl=2018` to make sure I had the most up to date\r\n"}}
{"actor":{"display_login":"meder411"}}