{"action":"created","issue":{"url":"https://api.github.com/repos/xianyi/OpenBLAS/issues/1490","repository_url":"https://api.github.com/repos/xianyi/OpenBLAS","labels_url":"https://api.github.com/repos/xianyi/OpenBLAS/issues/1490/labels{/name}","comments_url":"https://api.github.com/repos/xianyi/OpenBLAS/issues/1490/comments","events_url":"https://api.github.com/repos/xianyi/OpenBLAS/issues/1490/events","html_url":"https://github.com/xianyi/OpenBLAS/issues/1490","id":305873857,"number":1490,"title":"SVD hangs for some arrays, on Ubuntu 16.04.","user":{"login":"matthew-brett","id":67612,"avatar_url":"https://avatars2.githubusercontent.com/u/67612?v=4","gravatar_id":"","url":"https://api.github.com/users/matthew-brett","html_url":"https://github.com/matthew-brett","followers_url":"https://api.github.com/users/matthew-brett/followers","following_url":"https://api.github.com/users/matthew-brett/following{/other_user}","gists_url":"https://api.github.com/users/matthew-brett/gists{/gist_id}","starred_url":"https://api.github.com/users/matthew-brett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthew-brett/subscriptions","organizations_url":"https://api.github.com/users/matthew-brett/orgs","repos_url":"https://api.github.com/users/matthew-brett/repos","events_url":"https://api.github.com/users/matthew-brett/events{/privacy}","received_events_url":"https://api.github.com/users/matthew-brett/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-16T10:22:28Z","updated_at":"2018-03-16T17:42:56Z","closed_at":null,"author_association":"NONE","body":"Sorry not to have (yet) built a C test case, but over at [Numpy](https://github.com/numpy/numpy/issues/10742), we've hit an odd case where it is possible to lock the process with a call to SVD, when linked with OpenBLAS.\r\n\r\nYou can replicate it thus:\r\n\r\n```\r\ndocker pull ubuntu:16.04\r\ndocker run -ti --rm ubuntu:16.04 /bin/bash\r\n```\r\n\r\nthen (in the container):\r\n\r\n```\r\n# Get Python / OpenBLAS library\r\napt-get update\r\napt-get install -y python3 curl libopenblas-dev\r\n# Get Pip to install Numpy\r\ncurl -LO https://bootstrap.pypa.io/get-pip.py\r\npython3 get-pip.py\r\n# Install Numpy from source, linking to OpenBLAS\r\npip install --no-binary numpy numpy\r\n# Warning - this will lock the process!\r\npython3 -c 'import numpy as np; R = np.array([[1. , 0. , np.nan], [0. , 0 , np.nan], [ 0. , 0, np.nan]]) ;np.linalg.svd(R)'\r\n```\r\n\r\nWe get the same hang for all settings of OPENBLAS_CORETYPE - see: https://github.com/nipy/nibabel/issues/609#issuecomment-373052723\r\n\r\nHave you seen anything like this?"},"comment":{"url":"https://api.github.com/repos/xianyi/OpenBLAS/issues/comments/373791211","html_url":"https://github.com/xianyi/OpenBLAS/issues/1490#issuecomment-373791211","issue_url":"https://api.github.com/repos/xianyi/OpenBLAS/issues/1490","id":373791211,"user":{"login":"matthew-brett","id":67612,"avatar_url":"https://avatars2.githubusercontent.com/u/67612?v=4","gravatar_id":"","url":"https://api.github.com/users/matthew-brett","html_url":"https://github.com/matthew-brett","followers_url":"https://api.github.com/users/matthew-brett/followers","following_url":"https://api.github.com/users/matthew-brett/following{/other_user}","gists_url":"https://api.github.com/users/matthew-brett/gists{/gist_id}","starred_url":"https://api.github.com/users/matthew-brett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthew-brett/subscriptions","organizations_url":"https://api.github.com/users/matthew-brett/orgs","repos_url":"https://api.github.com/users/matthew-brett/repos","events_url":"https://api.github.com/users/matthew-brett/events{/privacy}","received_events_url":"https://api.github.com/users/matthew-brett/received_events","type":"User","site_admin":false},"created_at":"2018-03-16T17:42:56Z","updated_at":"2018-03-16T17:42:56Z","author_association":"NONE","body":"Unfortunately it does not appear to be fixed - it still hangs when linking against the latest OpenBLAS commit.\r\n\r\nBuilds of latest commit at:\r\n\r\nhttps://3f23b170c54c2533c070-1c8a9b3114517dc5fe17b7c3f8c63a43.ssl.cf2.rackcdn.com\r\n\r\nBuilds from:\r\n\r\nhttps://travis-ci.org/MacPython/openblas-libs/builds/354382616\r\n\r\nBuilds of numpy against this OpenBLAS, starting with `numpy-1.15.0.dev0+20180316170204`\r\n\r\nhttps://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com\r\n\r\nBuilds from:\r\n\r\nhttps://travis-ci.org/MacPython/numpy-wheels/builds/354401544\r\n\r\nReplicating hang:\r\n\r\n```\r\ndocker pull ubuntu:16.04\r\ndocker run -ti --rm ubuntu:16.04 /bin/bash\r\n```\r\n\r\n```\r\n# Get Python / OpenBLAS library\r\napt-get update\r\napt-get install -y python3 curl\r\n# Get Pip to install Numpy\r\ncurl -LO https://bootstrap.pypa.io/get-pip.py\r\npython3 get-pip.py\r\n# Install Numpy from source, linking to OpenBLAS\r\nCDN_URL=https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com\r\npip install --pre -f $CDN_URL numpy\r\n# Warning - this will still lock the process!\r\npython3 -c 'import numpy as np; R = np.array([[1. , 0. , np.nan], [0. , 0 , np.nan], [ 0. , 0, np.nan]]) ;np.linalg.svd(R)'\r\n```"}}
{"actor":{"display_login":"matthew-brett"}}