genesismining / sgminer-gm

A multi-algo GPU miner
GNU General Public License v3.0
339 stars 146 forks source link

Zcash not starting | Clang issue? #69

Closed jrblanno closed 2 years ago

jrblanno commented 7 years ago

Hi! I was trying to test out the ZCash minning, but the sgminer just crashes:`

[19:27:09] * using Jansson 2.7 [19:27:09] Loaded configuration file /opt/miner2/zcash.cfg [19:27:09] No sysfs pptable support for GPU0 ((null)) [19:27:09] WARNING: GPU_MAX_ALLOC_PERCENT is not specified! [19:27:09] WARNING: GPU_USE_SYNC_OBJECTS is not specified! [19:27:09] Probing for an alive pool [19:27:09] Nanopool ZCash extranonce set to dc74000000000000f76172007a231754 [19:27:10] Nanopool ZCash extranonce set to 6a980000000000009dc48f00a61b0076 [19:27:10] Nanopool ZCash target changed to 000369d000000000000000000000000000000000000000000000000000000000 [19:27:10] Startup GPU initialization... Using settings from pool Nanopool ZCash. [19:27:10] Startup Pool No = 0 [19:27:10] Building binary equihashEllesmeregw256l8.bin [19:27:10] Error -11: Building Program (clBuildProgram) [19:27:10] /tmp/OCL9193T3.cl:21:10: fatal error: 'equihash-param.h' file not found

include "equihash-param.h"

^ 1 error generated.

error: Clang front-end compilation failed! Frontend phase failed compilation. Error: Compiling CL to IR

[19:27:10] Failed to init GPU thread 0, disabling device 0 [19:27:10] Restarting the GPU from the menu will not fix this. [19:27:10] Re-check your configuration and try restarting. Press enter to continue: [19:28:11] GPUs did not become initialized in 60 seconds...

[19:29:00] thread_prepare failed for thread 0 [19:29:00] Building binary equihashEllesmeregw256l8.bin [19:29:00] Error -11: Building Program (clBuildProgram) [19:29:00] /tmp/OCL9193T5.cl:21:10: fatal error: 'equihash-param.h' file not found

include "equihash-param.h"

     ^

1 error generated.

error: Clang front-end compilation failed! Frontend phase failed compilation. Error: Compiling CL to IR

[19:29:00] Failed to init GPU thread 1, disabling device 0 [19:29:00] thread_prepare failed for thread `

what I'm I doing wrong ; this is my config:

zcash.cfg { "pools": [ { "name": "Nanopool ZCash", "url": "tratum+tcp://zec-us-east1.nanopool.org:16666", "user": "t1c6Tz9di3k1FNdhE8w4B4q9jrdY42izjAf.jrbv",
"pass": "x", "priority": "0", "profile": "zcash" }

],
"profiles":
[
    {
        "name": "zcash",
        "algorithm": "equihash",
        "worksize": "256",
        "gpu-threads": "2",
        "temp-target": "70",
        "temp-overheat": "80"
    }
],
"gpu-fan": "60-90",
"auto-fan": true,
"default-profile": "zcash"

}

keithdunnett commented 6 years ago

This is an install-time bug. The header file equihash-param.h should be getting copied into the same directory as equihash.cl (typically /usr/local/bin) for the OpenCL kernel to compile correctly. For now, copying it across manually will workaround the problem.