{"action":"created","issue":{"url":"https://api.github.com/repos/magnumripper/JohnTheRipper/issues/1850","labels_url":"https://api.github.com/repos/magnumripper/JohnTheRipper/issues/1850/labels{/name}","comments_url":"https://api.github.com/repos/magnumripper/JohnTheRipper/issues/1850/comments","events_url":"https://api.github.com/repos/magnumripper/JohnTheRipper/issues/1850/events","html_url":"https://github.com/magnumripper/JohnTheRipper/issues/1850","id":113402419,"number":1850,"title":"sha512crypt-opencl fails with cmp_all(1)","user":{"login":"fortytwopar","id":3269335,"avatar_url":"https://avatars.githubusercontent.com/u/3269335?v=3","gravatar_id":"","url":"https://api.github.com/users/fortytwopar","html_url":"https://github.com/fortytwopar","followers_url":"https://api.github.com/users/fortytwopar/followers","following_url":"https://api.github.com/users/fortytwopar/following{/other_user}","gists_url":"https://api.github.com/users/fortytwopar/gists{/gist_id}","starred_url":"https://api.github.com/users/fortytwopar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fortytwopar/subscriptions","organizations_url":"https://api.github.com/users/fortytwopar/orgs","repos_url":"https://api.github.com/users/fortytwopar/repos","events_url":"https://api.github.com/users/fortytwopar/events{/privacy}","received_events_url":"https://api.github.com/users/fortytwopar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-10-26T17:01:25Z","updated_at":"2015-10-26T22:21:17Z","closed_at":null,"body":"When I run `../run/john --format=sha512crypt-opencl --test -v=5` I get\r\n```\r\ninitUnicode(UNICODE, ASCII/ASCII)\r\nASCII -> ASCII -> ASCII\r\nBenchmarking: sha512crypt-opencl, crypt(3) $6$ (rounds=5000) [SHA512 OpenCL]... Device 0: GeForce 9500 GT\r\nOptions used: -I ../run/kernels -cl-mad-enable -DSM_MAJOR=1 -DSM_MINOR=1 -cl-nv-verbose -D__GPU__ -DDEVICE_INFO=18 -DDEV_VER_MAJOR=340 -DDEV_VER_MINOR=93 -D_OPENCL_COMPILER  $JOHN/kernels/cryptsha512_kernel_GPU.cl\r\nCalculating best GWS for LWS=32; max. 150ms single kernel invocation.\r\nRaw speed figures including buffer transfers:\r\nxfer: 29.344us, crypt: 119x21.271ms, xfer back: 43.808us, prep: 25.136ms, pp: 244.832us, final: 1.148ms, var: 21.266ms/21.257ms\r\ngws:       512      200c/s     1000000 rounds/s    2.558s per crypt_all()!\r\nxfer: 53.056us, crypt: 119x42.503ms, xfer back: 81.856us, prep: 48.948ms, pp: 287.136us, final: 2.267ms, var: 42.533ms/42.521ms\r\ngws:      1024      200c/s     1000000 rounds/s    5.113s per crypt_all()\r\nxfer: 101.632us, crypt: 119x84.975ms, xfer back: 161.216us, prep: 98.554ms, pp: 378.144us, final: 4.506ms, var: 84.968ms/84.973ms\r\ngws:      2048      200c/s     1000000 rounds/s   10.219s per crypt_all()\r\nxfer: 199.040us, crypt: 119x169.952ms (exceeds 150ms)\r\nCalculating best LWS for GWS=512\r\nTesting LWS=32 GWS=512 ... 106.315ms+\r\nTesting LWS=64 GWS=512 ... 56.638ms+\r\nTesting LWS=128 GWS=512 ... 56.542ms\r\nCalculating best GWS for LWS=64; max. 300ms single kernel invocation.\r\nRaw speed figures including buffer transfers:\r\nxfer: 16.576us, crypt: 119x10.671ms, xfer back: 22.528us, prep: 12.409ms, pp: 239.136us, final: 585.504us, var: 10.674ms/10.675ms\r\ngws:       256      199c/s      995000 rounds/s    1.283s per crypt_all()!\r\nxfer: 29.312us, crypt: 119x11.315ms, xfer back: 42.816us, prep: 13.129ms, pp: 246.080us, final: 625.728us, var: 11.312ms/11.301ms\r\ngws:       512      376c/s     1880000 rounds/s    1.360s per crypt_all()+\r\nxfer: 52.576us, crypt: 119x22.597ms, xfer back: 81.888us, prep: 26.109ms, pp: 315.232us, final: 1.224ms, var: 22.598ms/22.612ms\r\ngws:      1024      376c/s     1880000 rounds/s    2.718s per crypt_all()\r\nxfer: 101.696us, crypt: 119x45.120ms, xfer back: 157.088us, prep: 52.124ms, pp: 382.240us, final: 2.430ms, var: 45.231ms/45.074ms\r\ngws:      2048      377c/s     1885000 rounds/s    5.429s per crypt_all()\r\nxfer: 199.072us, crypt: 119x90.231ms, xfer back: 309.568us, prep: 104.296ms, pp: 528.096us, final: 4.835ms, var: 90.216ms/90.159ms\r\ngws:      4096      377c/s     1885000 rounds/s   10.848s per crypt_all()\r\nxfer: 393.184us, crypt: 119x180.494ms, xfer back: 613.536us, prep: 208.275ms, pp: 809.504us, final: 9.644ms, var: 180.208ms/180.113ms\r\ngws:      8192      377c/s     1885000 rounds/s   21.680s per crypt_all()\r\nxfer: 780.192us, crypt: 119x360.470ms (exceeds 300ms)\r\nLocal worksize (LWS) 64, global worksize (GWS) 512\r\nFAILED (cmp_all(1))\r\n```\r\nI am running on x86_64 Linux with a GeForce 9500 GT.\r\n\r\nhttps://github.com/magnumripper/JohnTheRipper/issues/1794 seems similar, though I am not familiar enough with the code to know whether it is.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/magnumripper/JohnTheRipper/issues/comments/151301176","html_url":"https://github.com/magnumripper/JohnTheRipper/issues/1850#issuecomment-151301176","issue_url":"https://api.github.com/repos/magnumripper/JohnTheRipper/issues/1850","id":151301176,"user":{"login":"magnumripper","id":1268598,"avatar_url":"https://avatars.githubusercontent.com/u/1268598?v=3","gravatar_id":"","url":"https://api.github.com/users/magnumripper","html_url":"https://github.com/magnumripper","followers_url":"https://api.github.com/users/magnumripper/followers","following_url":"https://api.github.com/users/magnumripper/following{/other_user}","gists_url":"https://api.github.com/users/magnumripper/gists{/gist_id}","starred_url":"https://api.github.com/users/magnumripper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magnumripper/subscriptions","organizations_url":"https://api.github.com/users/magnumripper/orgs","repos_url":"https://api.github.com/users/magnumripper/repos","events_url":"https://api.github.com/users/magnumripper/events{/privacy}","received_events_url":"https://api.github.com/users/magnumripper/received_events","type":"User","site_admin":false},"created_at":"2015-10-26T22:21:17Z","updated_at":"2015-10-26T22:21:17Z","body":"Try replacing all `__constant` in opencl/cryptsha512_kernel_GPU.cl to `__global const`."}}