Post
Topic
Board Mining (Altcoins)
Re: SILENTARMY v3: now a full miner! multi-GPU, Stratum support (Linux only)
by
mrb
on 08/11/2016, 03:04:26 UTC
Fresh install of Ubundu 16.04.  Using the instructions on the github website installed the SDK only.  Can't install the drivers because I am running R9 280x and AMD doesn't make drivers for 16.04 for 280x so was going to use the default ones.  I get here and I am stuck.  Any help will be appreciated!

mine@mine:~$ cd silentarmy
mine@mine:~/silentarmy$ make
echo 'const char *ocl_code = R"_mrb_(' >_kernel.h
cpp input.cl >>_kernel.h
echo ')_mrb_";' >>_kernel.h
gcc  -std=gnu99 -pedantic -Wextra -Wall -ggdb -Wno-deprecated-declarations -Wno-overlength-strings -I"/opt/AMDAPPSDK-3.0/include"  -c -o main.o main.c
gcc  -std=gnu99 -pedantic -Wextra -Wall -ggdb -Wno-deprecated-declarations -Wno-overlength-strings -I"/opt/AMDAPPSDK-3.0/include"  -c -o blake.o blake.c
gcc  -std=gnu99 -pedantic -Wextra -Wall -ggdb -Wno-deprecated-declarations -Wno-overlength-strings -I"/opt/AMDAPPSDK-3.0/include"  -c -o sha256.o sha256.c
gcc -o sa-solver main.o blake.o sha256.o -rdynamic -L"/opt/amdgpu-pro/lib/x86_64-linux-gnu" -lOpenCL
/usr/bin/ld: cannot find -lOpenCL
collect2: error: ld returned 1 exit status
Makefile:20: recipe for target 'sa-solver' failed
make: *** [sa-solver] Error 1
mine@mine:~/silentarmy$

The amdgpu-pro driver provides libOpenCL.so, so if you didn't install it, it's normal that you get this error. The solution to your pb is install Ubuntu 14.04 which will provide the fglrx driver (works with your card), and will provide libOpenCL.so.

But, for those who want to try a hack, I wonder if you could get a 280X to work on 16.04 by simply using the free amdgpu driver installed by default (don't install amdgpu-pro), and manually installing only the libopencl1-amdgpu-pro and opencl-amdgpu-pro-icd packages that come with amdgpu-pro (you need some dpkg/apt hackery to ignore other dependencies). Of course this is a big hack, but I wonder if it could work...