Closed ghost closed 6 years ago
Also, I had tried to run without GPU, seems working for simple test running on CPU.
According to https://streamhpc.com/blog/2013-04-28/opencl-error-codes/, -6
seems mean CL_OUT_OF_HOST_MEMORY
. So that means the host with 16G RAM is insufficient for a simple test? Or 6GB GDDR ram insufficient?
I just tested with the OPENCL demo from http://laanwj.github.io/2016/05/06/opencl-ubuntu1604.html
And I find out the reason is maybe your code just create the clContext
using the device NULL
. If yiou provide the device id with NULL, the function clCreateCommandQueue
will always return -6.
As my test results, this is definitely a potential problem for AMD graphics cards when there are dual GPUs.
Some other users complain about the AMD driver implementation: https://community.amd.com/thread/220038
Also, I will provide my test code in a moment.
This error is not only for dual-gpus, but was also happening for my single HD 7770. A solution I that worked for me was https://github.com/fireice-uk/xmr-stak-amd/issues/69#issuecomment-318248745
#!/bin/bash
export GPU_FORCE_64BIT_PTR=1
export GPU_USE_SYNC_OBJECTS=1
export GPU_MAX_ALLOC_PERCENT=100
export GPU_SINGLE_ALLOC_PERCENT=100
export GPU_MAX_HEAP_SIZE=100
First of all the tensorflow included seems outdated. I had updated the hash of dependencies to continue the compilation. Compiling is good.
Tested on Ubuntu 16.04
uname -a
:CPU: Intel Xeon E3-1230 v3, 4 Cores, 8 Threads RAM: 16G DDR3 1600MHz
tf-coriander: https://github.com/hughperkins/tf-coriander/commit/9fd0a7502c3361fc1de6b58ed02a5b22772a5f45
Simple test
CLINFO: