sgminer-gm icon indicating copy to clipboard operation
sgminer-gm copied to clipboard

sgminer has segfault when trying to run cryptonight algorithm

Open justindesilets opened this issue 8 years ago • 3 comments

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.

justindesilets avatar Dec 22 '17 05:12 justindesilets

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

CheCm19 avatar Dec 31 '17 01:12 CheCm19

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

CheCm19 avatar Dec 31 '17 01:12 CheCm19

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

kinghat avatar Feb 25 '18 23:02 kinghat