Closed chron0 closed 6 years ago
We will take a look
greg
@chron0 not sure if this will help but this is what I did to get it compiling with the ROCm drivers.
# Ubuntu 16.04.4 LTS (GNU/Linux 4.13.0-39-generic x86_64)
sudo apt install libmicrohttpd-dev libssl-dev cmake build-essential libhwloc-dev
git clone https://github.com/fireice-uk/xmr-stak.git
mkdir xmr-stak/build
cd xmr-stak/build
cmake .. -DCUDA_ENABLE=OFF -DOpenCL_INCLUDE_DIR=/opt/rocm/opencl/include/ -DOpenCL_LIBRARY=/opt/rocm/opencl/lib/x86_64/libOpenCL.so
make install
I used a clean install of Ubuntu 16.04 with following hardware:
xmr-stak runs ok (about 1200 H/s) Only problem is I can't get more than one GPU to be detected by xmr-stak or /opt/rocm/opencl/bin/x86_64/clinfo
.
Please do not install the Historical OpenCL SDK with ROCm it does not need this to build OpenCL applications. We removed this restriction in ROCm when also now when you install the base driver rocm-opencl-dev is installed as well so you no longer need to do this step like you did in the past.
Apparently there is this new 17.50 series which claims to have fixed some OpenCL + Vega issue(s)...
https://support.amd.com/en-us/download/workstation?os=Linux%20x86_64#pro-driver
That may do the trick, I do have AMDSDK 3.0 installed. I'll uninstall and try a new build tomorrow.
@Spudz76: I've tried 17.50 before as well, still no working opencl interface but it's a pain to work with the amd "pro" stuff on gentoo.
Full strace: http://termbin.com/t4g3
xmr-stak fails during compilation of the opencl code with error: Illegal instruction detected: Operand has incorrect register class. In order to test if this is a kernel/driver issue, I've tried https://github.com/genesismining/sgminer-gm, which works. Is there any way to let xmr-stak be more verbose about the compilation step to figure out why and where it is failing there?
@gstoner, @justXi: do you have any ideas from ROCm perspective?
@justXi: Thanks for the ebuild submissions - no issues during emerge
Basic information
Autodeteced amd.conf values
Build Trace
clinfo
Modules