nq-miner icon indicating copy to clipboard operation
nq-miner copied to clipboard

Error: Failed to initialize miner: clGetPlatformIDs

Open maxrull0 opened this issue 3 years ago • 5 comments

Hi, I used https://hub.shortnim.me/setupMiner for setting up the program and installed everything as told. I get this error after executing ./start_gpu.sh as root:

------------------------START Miner---------------------- [I 19:32:39] NQMiner: NQ Miner 0.99.7 OpenCL starting Error: Failed to initialize miner: clGetPlatformIDs at new NativeMiner (/snapshot/nq-miner/src/NativeMiner.js:0:0) at /snapshot/nq-miner/index.js:0:0 at Object. (/snapshot/nq-miner/index.js:0:0) at Module._compile (pkg/prelude/bootstrap.js:1261:22) at Object.Module._extensions..js (internal/modules/cjs/loader.js:710:10) at Module.load (internal/modules/cjs/loader.js:598:32) at tryModuleLoad (internal/modules/cjs/loader.js:537:12) at Function.Module._load (internal/modules/cjs/loader.js:529:3) at Function.Module.runMain (pkg/prelude/bootstrap.js:1316:12) at startup (internal/bootstrap/node.js:320:19) ------------------------END Miner---------------------- Something went wrong or you exited

What's the issue? Do I lack some dependencies? Do I have to install something manually? It looks like a runtime error but honestly idk.

Feel free to help. Thanks in advance!

maxrull0 avatar May 25 '21 17:05 maxrull0

it looks like you don't have OpenCL platform available. What's your GPU/drivers versions? also try running clinfo to find out details

tomkha avatar May 25 '21 17:05 tomkha

Hi, Here's some information about my system: https://pastebin.com/FVvUcHNJ I also installed amdpro-gpu drivers. But still, clinfo shows 0.

maxrull0 avatar May 26 '21 13:05 maxrull0

yeah, you need to figure out how to install drivers that support OpenCL

tomkha avatar May 26 '21 15:05 tomkha

Using ROCm might solve this

Albermonte avatar May 26 '21 17:05 Albermonte

In case anyone is still running into this issue: On Linux, when installing the AMD drivers, you'll need to set --opencl=rocr,legacy to include support for OpenCL. documentation

tE3m avatar Aug 18 '21 22:08 tE3m