Configure reports that I have openCl, but the output of the exe differs
yaxamie opened this issue · 4 comments
Currently installed 2 rx550s. I'm not sure what's happened here. OpenCL is found according to the output of the config, tho I've copied over the 3 hearder files from the amd app sdk where it's specified.
Below is my cflags as well as the results of my --ndevs
CFLAGS="-Os -Wall -march=native -I/opt/AMDAPPSDK-3.0/include" LDFLAGS="-L/opt/amdgpu-pro/lib/x86_64-linux-gnu" ./configure --disable-git-version --disable-adl --prefix=/opt/sgminer-5.5.5
------------------------------------------------------------------------
sgminer 5.5.5-gm-a
------------------------------------------------------------------------
Configuration Options Summary:
Use git version......: no
libcurl(GBT+getwork).: Enabled: -lcurl
curses.TUI...........: FOUND: -lncurses
OpenCL...............: FOUND. GPU mining support enabled
ADL..................: Detection overrided. GPU monitoring support DISABLED
Compilation............: make (or gmake)
CPPFLAGS.............:
CFLAGS...............: -Os -Wall -march=native -I/opt/AMDAPPSDK-3.0/include
LDFLAGS..............: -L/opt/amdgpu-pro/lib/x86_64-linux-gnu -lpthread
LDADD................: -ldl -lcurl submodules/jansson/src/.libs/libjansson.a -lpthread -lOpenCL -lm -lrt
Installation...........: make install (as root if needed, with 'su' or 'sudo')
prefix...............: /opt/sgminer-5.5.5
rusty@yaxamie-miner:~/Crypt/sgminer-gm$ /opt/sgminer-5.5.5/bin/sgminer --ndevs
[22:33:08] Error -1001: clGetPlatformsIDs failed (no OpenCL SDK installed?)
[22:33:08] clDevicesNum returned error, no GPUs usable
[22:33:08] 0 GPU devices max detected
rusty@yaxamie-miner:~/Crypt/sgminer-gm$
Actually, after a bit more digging, I think this is the issue:
running clinfo yields the following:
terminate called after throwing an instance of 'cl::Error'
what(): clGetPlatformIDs
Aborted (core dumped)
Sorry for the confusion, I'll try to track down why this is the case.
If clinfo fails then your OpenCL installation is broken and you need to fix it before you are able to mine.
im having the same issue.
any solution to this ?
don@miner-one:/Downloads/sgminer-gm$ sudo ./sgminer/Downloads/sgminer-gm$
[11:26:20] Started sgminer 5.5.5-gm-a
[11:26:20] * using Jansson 2.7
[11:26:20] Error -1001: clGetPlatformsIDs failed (no OpenCL SDK installed?)
[11:26:20] clDevicesNum returned error, no GPUs usable
[11:26:20] All devices disabled, cannot mine!
don@miner-one:
This worked like a charm for me:
make sure you have the 4.4.0-116-generic kernel
clean your current installation of sgminer, go into the sgminer directory and do
rm *.bin
make clean
clear your previous installation of your drivers if any:
amdgpu-pro-uninstall -y
then download the 17.40 drivers on amd website and install them :
tar xvJf amdgpu-pro-17.40-492261.tar.xz
cd amdgpu-pro-17.40-492261
./amdgpu-pro-install -y
then download the amd 16.40 drivers and install only the opencl packages:
tar xvJf amdgpu-pro-16.40-348864.tar.xz
cd amdgpu-pro-16.40-348864
dpkg -i opencl-amdgpu-pro-icd_16.40-348864_*.deb
reboot
go back to your sgminer directory and do
autoreconf -fi
CFLAGS="-Os -Wall -march=native -I/opt/AMDAPPSDK-3.0/include" LDFLAGS="-L/opt/amdgpu-pro/lib/x86_64-linux-gnu" ./configure --disable-git-version --disable-adl --prefix=/opt/sgminer-5.5.5
make
now launch sgminer with your target configuration to regenerate the *.bin file.
when it is done, you can fix your apt dependencies
go into your amdgpu-pro-17.40-492261 folder and do
dpkg -i opencl-amdgpu-pro-icd_*.deb
and voilà !
Note: Everytime you rebuild the bin files (for a new algo, etc...) you should use the 16.40 opencl package.
Source: https://github.com/genesismining/sgminer-gm/wiki/Compile-sgminer-5.5.5-in-Ubuntu-16.04.1-LTS
If it helped you, tips are welcomed here :
BTC: 1GwPZbTx72Zgaepp8HHEUVCCxZGVgAc45d
ETH: 0x452c0E7Eada955a1f8E7f19A76ACb41df547aE03