{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/22","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/22/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/22/events","html_url":"https://github.com/tensorflow/tensorflow/issues/22","id":115928097,"number":22,"title":"OpenCL support","user":{"login":"outlace","id":3196399,"avatar_url":"https://avatars.githubusercontent.com/u/3196399?v=3","gravatar_id":"","url":"https://api.github.com/users/outlace","html_url":"https://github.com/outlace","followers_url":"https://api.github.com/users/outlace/followers","following_url":"https://api.github.com/users/outlace/following{/other_user}","gists_url":"https://api.github.com/users/outlace/gists{/gist_id}","starred_url":"https://api.github.com/users/outlace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/outlace/subscriptions","organizations_url":"https://api.github.com/users/outlace/orgs","repos_url":"https://api.github.com/users/outlace/repos","events_url":"https://api.github.com/users/outlace/events{/privacy}","received_events_url":"https://api.github.com/users/outlace/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tensorflow/tensorflow/labels/contributions%20welcome","name":"contributions welcome","color":"009800"},{"url":"https://api.github.com/repos/tensorflow/tensorflow/labels/cuda","name":"cuda","color":"f7c6c7"}],"state":"open","locked":false,"assignee":{"login":"benoitsteiner","id":6969686,"avatar_url":"https://avatars.githubusercontent.com/u/6969686?v=3","gravatar_id":"","url":"https://api.github.com/users/benoitsteiner","html_url":"https://github.com/benoitsteiner","followers_url":"https://api.github.com/users/benoitsteiner/followers","following_url":"https://api.github.com/users/benoitsteiner/following{/other_user}","gists_url":"https://api.github.com/users/benoitsteiner/gists{/gist_id}","starred_url":"https://api.github.com/users/benoitsteiner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benoitsteiner/subscriptions","organizations_url":"https://api.github.com/users/benoitsteiner/orgs","repos_url":"https://api.github.com/users/benoitsteiner/repos","events_url":"https://api.github.com/users/benoitsteiner/events{/privacy}","received_events_url":"https://api.github.com/users/benoitsteiner/received_events","type":"User","site_admin":false},"assignees":[{"login":"benoitsteiner","id":6969686,"avatar_url":"https://avatars.githubusercontent.com/u/6969686?v=3","gravatar_id":"","url":"https://api.github.com/users/benoitsteiner","html_url":"https://github.com/benoitsteiner","followers_url":"https://api.github.com/users/benoitsteiner/followers","following_url":"https://api.github.com/users/benoitsteiner/following{/other_user}","gists_url":"https://api.github.com/users/benoitsteiner/gists{/gist_id}","starred_url":"https://api.github.com/users/benoitsteiner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benoitsteiner/subscriptions","organizations_url":"https://api.github.com/users/benoitsteiner/orgs","repos_url":"https://api.github.com/users/benoitsteiner/repos","events_url":"https://api.github.com/users/benoitsteiner/events{/privacy}","received_events_url":"https://api.github.com/users/benoitsteiner/received_events","type":"User","site_admin":false}],"milestone":null,"comments":202,"created_at":"2015-11-09T17:41:26Z","updated_at":"2016-10-23T11:11:14Z","closed_at":null,"body":"I understand TensorFlow only supports CUDA. What would need to be done to add in OpenCL support?"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/255582639","html_url":"https://github.com/tensorflow/tensorflow/issues/22#issuecomment-255582639","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/22","id":255582639,"user":{"login":"hughperkins","id":123560,"avatar_url":"https://avatars.githubusercontent.com/u/123560?v=3","gravatar_id":"","url":"https://api.github.com/users/hughperkins","html_url":"https://github.com/hughperkins","followers_url":"https://api.github.com/users/hughperkins/followers","following_url":"https://api.github.com/users/hughperkins/following{/other_user}","gists_url":"https://api.github.com/users/hughperkins/gists{/gist_id}","starred_url":"https://api.github.com/users/hughperkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hughperkins/subscriptions","organizations_url":"https://api.github.com/users/hughperkins/orgs","repos_url":"https://api.github.com/users/hughperkins/repos","events_url":"https://api.github.com/users/hughperkins/events{/privacy}","received_events_url":"https://api.github.com/users/hughperkins/received_events","type":"User","site_admin":false},"created_at":"2016-10-23T11:11:14Z","updated_at":"2016-10-23T11:11:14Z","body":"### Update\r\n\r\n- fixed critical bug involving `float4`s, that meant that tensors larger than say, ... 3 :-P , could not be added correctly\r\n- placeholders work correctly, and added a python test script showing these, ie https://github.com/hughperkins/tensorflow-cl/blob/tensorflow-cl/tensorflow/stream_executor/cl/test/test_tf2.py\r\n- note that you probably need to do a full deep clean again, ie\r\n```\r\nrm -Rf third_party/cuda-on-cl/build\r\npushd third_party/cuda-on-cl/build\r\nmake -j 4\r\nsudo make install\r\npopd\r\nbazel clean\r\n```\r\n- you might be able to avoid doing the `bazel clean`, if you hack around by doing something like:\r\n```\r\ncd ~/.cache/bazel/_bazel_ubuntu/(magic hash number here...)\r\nfind . -name '*gpu_add*' -delete\r\n```\r\n\r\n@inferna I installed a fresh box from scratch ,as a build box, and used something like the following commands:\r\n```\r\nsudo apt-get update\r\nsudo apt-get dist-upgrade\r\n# this next line is specific to me, since: I like wcalc, like htop, build box has no opencl card :-P,\r\n# and I use nfs to copy files between boxes:\r\nsudo apt-get install -y wcalc htop ocl-icd-opencl-dev nfs-common\r\nsudo apt-get install -y opencl-headers cmake clang-3.8 llvm-3.8 clinfo git gcc g++ python3-numpy python3-dev python3-wheel zlib1g-dev\r\nsudo apt-get install -y openjdk-8-jdk unzip zip virtualenv swig python3-setuptools\r\nmkdir -p git\r\ncd git\r\ngit clone --recursive https://github.com/hughperkins/tensorflow-cl\r\ncd tensorflow-cl\r\npushd third_party/cuda-on-cl\r\nNUM_PROCS=$(cat /proc/cpuinfo  | grep processor | wc -l)\r\nmake -j ${NUM_PROCS}\r\nsudo make install\r\ncd ~/git\r\ngit clone https://github.com/bazelbuild/bazel.git\r\ncd bazel\r\ngit checkout 0.3.2\r\n./compile.sh\r\nsudo cp output/bazel /usr/local/bin\r\ncd ~/git/tensorflow-cl\r\n./configure\r\n# put python path: /usr/bin/python3\r\n# 'no' for hadoop, gpu, cloud, etc\r\nbazel run --logging 6 //tensorflow/tools/cocl:testcu\r\nbazel run --verbose_failures --logging 6 //tensorflow/tools/pip_package:build_pip_package\r\nbazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflowpkg\r\n\r\nvirtualenv -p python3 ~/env3\r\nsource ~/env3/bin/activate\r\npip install /tmp/tensorflowpkg/tensorflow-0.11.0rc0-py3-none-any.whl\r\n\r\ncd\r\npython -c 'import tensorflow'\r\n# should be no errors :-)\r\npython ~/git/tensorflow-cl/tensorflow/stream_executor/cl/test/test_tf2.py\r\n```\r\n"}}
{"actor":{"display_login":"hughperkins"}}