{"action":"created","issue":{"url":"https://api.github.com/repos/cudamat/cudamat/issues/58","labels_url":"https://api.github.com/repos/cudamat/cudamat/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/cudamat/cudamat/issues/58/comments","events_url":"https://api.github.com/repos/cudamat/cudamat/issues/58/events","html_url":"https://github.com/cudamat/cudamat/issues/58","id":115118727,"number":58,"title":"Another libcublas.so.7.5: cannot open shared object file problem","user":{"login":"gammaguy","id":11431640,"avatar_url":"https://avatars.githubusercontent.com/u/11431640?v=3","gravatar_id":"","url":"https://api.github.com/users/gammaguy","html_url":"https://github.com/gammaguy","followers_url":"https://api.github.com/users/gammaguy/followers","following_url":"https://api.github.com/users/gammaguy/following{/other_user}","gists_url":"https://api.github.com/users/gammaguy/gists{/gist_id}","starred_url":"https://api.github.com/users/gammaguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gammaguy/subscriptions","organizations_url":"https://api.github.com/users/gammaguy/orgs","repos_url":"https://api.github.com/users/gammaguy/repos","events_url":"https://api.github.com/users/gammaguy/events{/privacy}","received_events_url":"https://api.github.com/users/gammaguy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-04T18:34:55Z","updated_at":"2015-11-09T15:46:35Z","closed_at":null,"body":"Great library.  Exactly what I'm looking for but....\r\n\r\nI was able to install then run nosetests and bench_cudamat.py without errors (although I found if I run nosetests a number of times I get a \"CUDAMatrix.sum exceeded threshold\" or \"cudamat.pow exceeded threshold\" intermittently.  I put the full errors at the bottom in the Appendix). \r\n\r\n**I can run the example from the README.md in both the python shell or ipython but if I run it in Pycharm I get the following:**\r\n______________________________________________\r\n/home/paul/anaconda/bin/python /home/paul/PycharmProjects/untitled/po_cudamattest1967.py\r\nTraceback (most recent call last):\r\n  File \"/home/paul/PycharmProjects/untitled/po_cudamattest1967.py\", line 3, in <module>\r\n    import cudamat as cm\r\n  File \"/home/paul/.local/lib/python2.7/site-packages/cudamat-0.3-py2.7-linux-x86_64.egg/cudamat/__init__.py\", line 1, in <module>\r\n    from .cudamat import *\r\n  File \"/home/paul/.local/lib/python2.7/site-packages/cudamat-0.3-py2.7-linux-x86_64.egg/cudamat/cudamat.py\", line 18, in <module>\r\n    _cudamat = load_library('libcudamat')\r\n  File \"/home/paul/.local/lib/python2.7/site-packages/cudamat-0.3-py2.7-linux-x86_64.egg/cudamat/cudamat.py\", line 16, in load_library\r\n    basename + ext))\r\n  File \"/home/paul/anaconda/lib/python2.7/ctypes/__init__.py\", line 443, in LoadLibrary\r\n    return self._dlltype(name)\r\n  File \"/home/paul/anaconda/lib/python2.7/ctypes/__init__.py\", line 365, in __init__\r\n    self._handle = _dlopen(self._name, mode)\r\nOSError: libcublas.so.7.5: cannot open shared object file: No such file or directory\r\n\r\nProcess finished with exit code 1\r\n___________________________________________\r\n\r\nI'm running Ubuntu 14.04, Cuda 7.5, Pycharm 5.0 on a i7-5950X, 32Gb with a Titan X.  My Theano programs run fine. I also tried it on Pycharm 4.5.\r\n\r\nI compiled for a 5.2 Compute Capability via: \r\nNVCCFLAGS=-arch=sm_52 python setup.py install --user\r\n\r\nAny thoughts would be welcome.  I still not great at Ubuntu so a little patience would be appreicated.\r\n\r\nRegards\r\nPaul\r\n\r\n\r\n\r\n**Appendix:**\r\nThe two error I intermittently get between no error.\r\n\r\npaul@speed:~/paul/cudamat/test$ nosetests\r\n.........................................................\r\n----------------------------------------------------------------------\r\nRan 57 tests in 0.790s\r\n\r\nOK\r\n\r\npaul@speed:~/paul/cudamat/test$ nosetests\r\n................F........................................\r\n======================================================================\r\nFAIL: test_cudamat.test_sum_trans\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/paul/anaconda/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\r\n    self.test(*self.arg)\r\n  File \"/home/paul/paul/cudamat/test/test_cudamat.py\", line 367, in test_sum_trans\r\n    assert np.max(np.abs(c2 - mt2.numpy_array)) < 10**-3, \"Error in CUDAMatrix.sum exceeded threshold\"\r\nAssertionError: Error in CUDAMatrix.sum exceeded threshold\r\n\r\n----------------------------------------------------------------------\r\nRan 57 tests in 0.831s\r\n\r\nFAILED (failures=1)\r\npaul@speed:~/paul/cudamat/test$ nosetests\r\n..................................F......................\r\n======================================================================\r\nFAIL: test_cudamat.test_pow_matrix\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/paul/anaconda/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\r\n    self.test(*self.arg)\r\n  File \"/home/paul/paul/cudamat/test/test_cudamat.py\", line 791, in test_pow_matrix\r\n    assert np.max(np.abs(c - m1.numpy_array)) < 10**-2, \"Error in cudamat.pow exceeded threshold\"\r\nAssertionError: Error in cudamat.pow exceeded threshold\r\n\r\n----------------------------------------------------------------------\r\nRan 57 tests in 0.793s\r\n\r\nFAILED (failures=1)"},"comment":{"url":"https://api.github.com/repos/cudamat/cudamat/issues/comments/155100880","html_url":"https://github.com/cudamat/cudamat/issues/58#issuecomment-155100880","issue_url":"https://api.github.com/repos/cudamat/cudamat/issues/58","id":155100880,"user":{"login":"f0k","id":629706,"avatar_url":"https://avatars.githubusercontent.com/u/629706?v=3","gravatar_id":"","url":"https://api.github.com/users/f0k","html_url":"https://github.com/f0k","followers_url":"https://api.github.com/users/f0k/followers","following_url":"https://api.github.com/users/f0k/following{/other_user}","gists_url":"https://api.github.com/users/f0k/gists{/gist_id}","starred_url":"https://api.github.com/users/f0k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/f0k/subscriptions","organizations_url":"https://api.github.com/users/f0k/orgs","repos_url":"https://api.github.com/users/f0k/repos","events_url":"https://api.github.com/users/f0k/events{/privacy}","received_events_url":"https://api.github.com/users/f0k/received_events","type":"User","site_admin":false},"created_at":"2015-11-09T15:46:35Z","updated_at":"2015-11-09T15:46:35Z","body":"> I found if I run nosetests a number of times I get a \"CUDAMatrix.sum exceeded threshold\" or \"cudamat.pow exceeded threshold\" intermittently\r\n\r\nThat's reported in #54, the tolerances in the tests seem to be too strict for most GPUs. Feel free to help out with this.\r\n\r\n> OSError: libcublas.so.7.5: cannot open shared object file: No such file or directory\r\n\r\nI don't know Pycharm, but it seems you installed CUDA in a way Pycharm can't find it. Make sure the library location (e.g. /usr/local/cuda/lib64) is on `LD_LIBRARY_PATH` for Pycharm, or create a file `/etc/ld.so.conf.d/cuda` with a single line `/usr/local/cuda/lib64` and run `sudo ldconfig` to make CUDA available globally. If this solves the problem, please close the issue!"}}