I'm not sure if this question belongs here or on tensorflow troubleshoot or on askubuntu, but I'll start here. I'm having problems with running tensorflow on my GPU, e.g. the following code:
import tensorflow as tf;
a = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[2, 3], name='a')
b = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[3, 2], name='b')
c = tf.matmul(a, b)
# Creates a session with log_device_placement set to True.
sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))
# Runs the op.
Unfortunately, currently tensorflow only supports NVIDIA GPUs that support CUDA.
You can follow the issue, tracking the effort to support open-source OpenCL.