{"action":"created","issue":{"url":"https://api.github.com/repos/xianyi/OpenBLAS/issues/1117","repository_url":"https://api.github.com/repos/xianyi/OpenBLAS","labels_url":"https://api.github.com/repos/xianyi/OpenBLAS/issues/1117/labels{/name}","comments_url":"https://api.github.com/repos/xianyi/OpenBLAS/issues/1117/comments","events_url":"https://api.github.com/repos/xianyi/OpenBLAS/issues/1117/events","html_url":"https://github.com/xianyi/OpenBLAS/issues/1117","id":212855746,"number":1117,"title":"Race condition in ssyrk causing deadlock","user":{"login":"matthewfl","id":32317,"avatar_url":"https://avatars1.githubusercontent.com/u/32317?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewfl","html_url":"https://github.com/matthewfl","followers_url":"https://api.github.com/users/matthewfl/followers","following_url":"https://api.github.com/users/matthewfl/following{/other_user}","gists_url":"https://api.github.com/users/matthewfl/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewfl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewfl/subscriptions","organizations_url":"https://api.github.com/users/matthewfl/orgs","repos_url":"https://api.github.com/users/matthewfl/repos","events_url":"https://api.github.com/users/matthewfl/events{/privacy}","received_events_url":"https://api.github.com/users/matthewfl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-03-08T21:02:28Z","updated_at":"2017-03-09T04:30:24Z","closed_at":null,"body":"Using ssyrk with multiple threads eventually causes openblas to deadlock and not return.\r\n\r\nSample stack traces:\r\nhttps://gist.github.com/matthewfl/455d86676034fccce0dc2a41766602a2\r\n\r\nThis seems to be related to one of these lines, but I haven't narrowed it down further yet:\r\nhttps://github.com/xianyi/OpenBLAS/blob/develop/driver/level3/level3_syrk_threaded.c#L361\r\nhttps://github.com/xianyi/OpenBLAS/blob/develop/driver/level3/level3_syrk_threaded.c#L469\r\nhttps://github.com/xianyi/OpenBLAS/blob/develop/driver/level3/level3_syrk_threaded.c#L267\r\n\r\nThis takes my program about ~5 hours to hit this race condition.  I am guessing that it requires at least 10,000 calls of this method with ~300^2 matrix to cause it to deadlock.\r\n\r\nThis is also on the release v0.2.19"},"comment":{"url":"https://api.github.com/repos/xianyi/OpenBLAS/issues/comments/285251736","html_url":"https://github.com/xianyi/OpenBLAS/issues/1117#issuecomment-285251736","issue_url":"https://api.github.com/repos/xianyi/OpenBLAS/issues/1117","id":285251736,"user":{"login":"matthewfl","id":32317,"avatar_url":"https://avatars1.githubusercontent.com/u/32317?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewfl","html_url":"https://github.com/matthewfl","followers_url":"https://api.github.com/users/matthewfl/followers","following_url":"https://api.github.com/users/matthewfl/following{/other_user}","gists_url":"https://api.github.com/users/matthewfl/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewfl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewfl/subscriptions","organizations_url":"https://api.github.com/users/matthewfl/orgs","repos_url":"https://api.github.com/users/matthewfl/repos","events_url":"https://api.github.com/users/matthewfl/events{/privacy}","received_events_url":"https://api.github.com/users/matthewfl/received_events","type":"User","site_admin":false},"created_at":"2017-03-09T04:30:24Z","updated_at":"2017-03-09T04:30:24Z","body":"I tried the `USE_SIMPLE_THREADED_LEVEL3=1` and it at least did not deadlock through one run of my program, so atm it seems that this is a work around around."}}
{"actor":{"display_login":"matthewfl"}}