Skip to content
This repository has been archived by the owner on Jan 9, 2021. It is now read-only.

sgminer has segfault when trying to run cryptonight algorithm #16

Open
justindesilets opened this issue Dec 22, 2017 · 3 comments
Open

Comments

@justindesilets
Copy link

justindesilets commented Dec 22, 2017

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
Copy link

CheCm19 commented Dec 31, 2017

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

@CheCm19
Copy link

CheCm19 commented Dec 31, 2017

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
Copy link

kinghat commented Feb 25, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants