nicehash / sgminer-gm

A multi-algo GPU miner from genesismining
GNU General Public License v3.0
32 stars 34 forks source link

sgminer has segfault when trying to run cryptonight algorithm #16

Open justindesilets opened 6 years ago

justindesilets commented 6 years ago

When trying to run the sgminer using the following:

./sgminer -o stratum+tcp://cryptonight.usa.nicehash.com:3355 -k cryptonight -u x -p x

sgminer dumps out and I get the following logged:

[22:02:45] Started sgminer 5.5.5-gm-a
[22:02:45] * using Jansson 2.7Segmentation fault (core dumped)
sgminer[2170]: segfault at 81 ip 00007fbf95e4a564 sp 00007fbf8a0348e0 error 4 in libamdocl64.so[7fbf94fd6000+3b33000]

I compiled the sgminer on CentOS-7 using the newly release AMD driver amdgpu-pro.x86_64 17.50-511655.el7. I have also enabled core dumps and can paste that in if it would help. It's pretty lengthy. This is using an AMD RX 480 GPU.

CheCm19 commented 6 years ago

What version of OpenCL drivers do you have installed? v1.1 or v2.0?

CheCm19 commented 6 years ago

Alright I got this one figured out. The issues occurs when using any version of OpenCL that is < v2.0. So to get the miner to work with cryptonight you need to install the AMD OpenCL v2.0 drivers from the following link. Let me know how it goes.

http://support.amd.com/en-us/kb-articles/Pages/OpenCL2-Driver.aspx

kinghat commented 6 years ago

@CheCm19 shouldnt the most recent AMD APP SDK come with OCL2.0?