benoitsteiner / tensorflow-opencl

OpenCL support for TensorFlow
Apache License 2.0
472 stars 86 forks source link

Issues getting R9 390x working with openCL using the codeplay tutorial. #67

Open Datadude88 opened 7 years ago

Datadude88 commented 7 years ago

Hey everyone,

Post is mostly self-explanatory, but I've been struggling to get open-CL working using the AMD R9 390x while trying to follow the tutorial here. I get this error when I try to run clinfo:

modprobe: ERROR: ../libkmod/libkmod-module.c:809 kmod_module_insert_module() could not find module by name='fglrx' modprobe: ERROR: could not insert 'fglrx': Function not implemented Error! Fail to load fglrx kernel module! Maybe you can switch to root user to load kernel module directly modprobe: ERROR: ../libkmod/libkmod-module.c:809 kmod_module_insert_module() could not find module by name='fglrx' modprobe: ERROR: could not insert 'fglrx': Function not implemented Error! Fail to load fglrx kernel module! Maybe you can switch to root user to load kernel module directly X Error of failed request: BadRequest (invalid request code or no such operation) Major opcode of failed request: 156 () Minor opcode of failed request: 19 Serial number of failed request: 12 Current serial number in output stream: 12

Was a pain to finally get even the fglrx drivers to not be buggy as hell and stop throwing up errors in general, which I'm sure is going to be related somehow. What worked for me was the purging and installation methods found at this post. Everything else I followed directly from the tutorial.

Anyone have any ideas as to where I should start looking? I know I have fglrx installed, so I'm really not sure what is up. Related but not so important...my 3 displays are also not working properly either.

Please let me know what would be some good logs to provide so I can provide you with with some helpful info. Thank you!

lukeiwanski commented 7 years ago

For this fork the best is to follow instructions from here: http://deep-beta.co.uk/setting-up-tensorflow-with-opencl-using-sycl/

TL;DR - yes you need to sort out your fglrx in the first place. That involves downgrading the linux kernel.