{"action":"created","issue":{"url":"https://api.github.com/repos/BVLC/caffe/issues/2195","labels_url":"https://api.github.com/repos/BVLC/caffe/issues/2195/labels{/name}","comments_url":"https://api.github.com/repos/BVLC/caffe/issues/2195/comments","events_url":"https://api.github.com/repos/BVLC/caffe/issues/2195/events","html_url":"https://github.com/BVLC/caffe/pull/2195","id":64240527,"number":2195,"title":"OpenCL Backend","user":{"login":"lunochod","id":2642598,"avatar_url":"https://avatars.githubusercontent.com/u/2642598?v=3","gravatar_id":"","url":"https://api.github.com/users/lunochod","html_url":"https://github.com/lunochod","followers_url":"https://api.github.com/users/lunochod/followers","following_url":"https://api.github.com/users/lunochod/following{/other_user}","gists_url":"https://api.github.com/users/lunochod/gists{/gist_id}","starred_url":"https://api.github.com/users/lunochod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunochod/subscriptions","organizations_url":"https://api.github.com/users/lunochod/orgs","repos_url":"https://api.github.com/users/lunochod/repos","events_url":"https://api.github.com/users/lunochod/events{/privacy}","received_events_url":"https://api.github.com/users/lunochod/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/BVLC/caffe/labels/compatibility","name":"compatibility","color":"fbca04"},{"url":"https://api.github.com/repos/BVLC/caffe/labels/enhancement","name":"enhancement","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":153,"created_at":"2015-03-25T10:48:09Z","updated_at":"2015-07-11T00:08:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/BVLC/caffe/pulls/2195","html_url":"https://github.com/BVLC/caffe/pull/2195","diff_url":"https://github.com/BVLC/caffe/pull/2195.diff","patch_url":"https://github.com/BVLC/caffe/pull/2195.patch"},"body":"# About\r\n\r\nThe proposed changes add OpenCL support to Caffe. All GPU functions can be executed using AMD GPUs w/ OpenCL 1.2 or 2.0 as well as nVidia GPUs w/ OpenCL 1.1.\r\n\r\n# OpenCL Build Target\r\n\r\nEdit Makefile and Makefile.config.OpenCL to enable OpenCL as a build target. clBLAS is required to support BLAS functions through OpenCL.\r\n\r\n# OpenCL Tests\r\n\r\nAll GPU tests successfully complete using this OpenCL version of Caffe.\r\n\r\n# Performance and Stability\r\n\r\nThe main goal was to provide an OpenCL port to the Caffe community. As such it is not yet optimized for performance or stability.\r\n\r\n# Help Wanted\r\n\r\nLet's make it better and faster together.  "},"comment":{"url":"https://api.github.com/repos/BVLC/caffe/issues/comments/120554082","html_url":"https://github.com/BVLC/caffe/pull/2195#issuecomment-120554082","issue_url":"https://api.github.com/repos/BVLC/caffe/issues/2195","id":120554082,"user":{"login":"drdaxxy","id":40321,"avatar_url":"https://avatars.githubusercontent.com/u/40321?v=3","gravatar_id":"","url":"https://api.github.com/users/drdaxxy","html_url":"https://github.com/drdaxxy","followers_url":"https://api.github.com/users/drdaxxy/followers","following_url":"https://api.github.com/users/drdaxxy/following{/other_user}","gists_url":"https://api.github.com/users/drdaxxy/gists{/gist_id}","starred_url":"https://api.github.com/users/drdaxxy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drdaxxy/subscriptions","organizations_url":"https://api.github.com/users/drdaxxy/orgs","repos_url":"https://api.github.com/users/drdaxxy/repos","events_url":"https://api.github.com/users/drdaxxy/events{/privacy}","received_events_url":"https://api.github.com/users/drdaxxy/received_events","type":"User","site_admin":false},"created_at":"2015-07-11T00:08:57Z","updated_at":"2015-07-11T00:08:57Z","body":"After pulling the latest changes and rebuilding, I am seeing a speed increase, though it's still not as fast as @jyegerlehner's slightly lesser Tahiti.\r\n\r\n- caffe time --model=models/bvlc_alexnet/deploy.prototxt --gpu=0: forward 95.68ms, backward 74.18ms, forward-backward 169.92ms\r\n- time examples/cifar10/train_quick.sh: 67.43s\r\n- classification.ipynb test, as explained above: 1.84s\r\n\r\nSoumith's benchmarks still all run out of memory for me.\r\n\r\nI also tested with only clBLAS (USE_CLGEMM=OFF) and this did indeed perform worse for me.\r\n\r\nBy the way, is there anyone here with access to a Xeon Phi to test on? I doubt it would perform particularly well, at least given the lack of kernels optimised for that architecture, but it would be interesting to see nonetheless.\r\n\r\n@naibaf7 \r\nHaven't tried your branch yet, will do (as well as run the test suite on both) and post results once I find the time.\r\n\r\n@jyegerlehner\r\nI did build with proper settings, yes. Unfortunately can't quickly test downgrading my driver right now, as the fglrx package's dependencies used to be incorrect so I'd have to repackage it."}}