Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AMD GPU device not found, but GPU test passed #86

Open
nolanlad opened this issue Apr 1, 2018 · 1 comment
Open

AMD GPU device not found, but GPU test passed #86

nolanlad opened this issue Apr 1, 2018 · 1 comment

Comments

@nolanlad
Copy link

nolanlad commented Apr 1, 2018

System Info:

OS: Ubuntu 16.04
CUDA version: None
GPU: Advanced Micro Devices, Inc. [AMD/ATI] Richland [Radeon HD 8650G]
TensorFlow Build: Source

I ran the bazel gpu test with the command:

bazel test -c opt --verbose_failures --test_timeout 3600 //tensorflow/python/kernel_tests:basic_gpu_test

which it passed.

However, I am trying to run someone else's code found here:

https://github.com/cysmith/neural-style-tf

command I run is:

bash stylize_image.sh ./image_input/lion.jpg ./styles/kandinsky.jpg

which gives me the error:

tensorflow.python.framework.errors_impl.InvalidArgumentError: Cannot assign a device for operation 'Variable': Operation was explicitly assigned to /device:GPU:0 but available devices are [ /job:localhost/replica:0/task:0/device:CPU:0 ]. Make sure the device specification refers to a valid device.
[[Node: Variable = VariableV2container="", dtype=DT_FLOAT, shape=[1,512,512,3], shared_name="", _device="/device:GPU:0"]]

How should I change the code to get it to work with my AMD GPU?

@rodburns
Copy link

The latest OpenCL for TensorFlow work now lives here https://github.com/codeplaysoftware/tensorflow You can follow the guide here https://developer.codeplay.com/products/computecpp/ce/guides/tensorflow-guide/tensorflow-generic-setup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants