NebulousLabs / Sia-GPU-Miner

A GPU Miner for Sia
MIT License
151 stars 79 forks source link

error code -1 #54

Open tequillasun opened 7 years ago

tequillasun commented 7 years ago

hello i have opencl installed I can mine ethereum, but not siacoin!

Initializing... Failed to get number of OpenCL devices with error code -1 (clGetDeviceIDs).

Any help would be greatly appreciated. Thanks

droghio commented 7 years ago

What type of setup do you have? The program by default is looking for a dedicated GPU, if it can't find any it will throw a similar error message.

Could you run the command sia-gpi-miner -h and post the results? That should query available OpenCL devices after printing usage info.

tequillasun commented 7 years ago

./sia-gpu-miner -h

Usage:

 C - cycles per iter: Number of kernel executions between Sia API calls and hash rate updates
    A low C will cause instability. As a rule of thumb, the hashrate should only be updating a few times per second.
    Default is 30.

 I - intensity: This is the amount of work sent to the GPU in one batch.
    Interpretation is 2^intensity; the default is 16. Lower if GPU crashes or
    if more desktop interactivity is desired. Highest hashrate is typically at 22-25.

 H - host: which host name to use when talking to the siad api. (default: localhost)

 P - port: which port to use when talking to the siad api. (e.g. -p :9980)

 p - OpenCL platform ID: Just what it says on the tin. If you're finding no GPUs,
    yet you're sure they exist, try a value other than 0, like 1, or 2. Default is 0.

 d - OpenCL device ID: Self-explanatory; it's the GPU index. Note that different
    OpenCL platforms will likely have different devices available. Default is 0.

Found 1 platform(s) on your computer. Devices on platform 0, "Clover": Error while fetching device ids.

tequillasun commented 7 years ago

its an acer laptop that i am toying with, but i have dedicated eth miners and bitcoin miners.. Acer Intel i5, Intel HD graphics 520 and i am running Kali linux

droghio commented 7 years ago

If you are still looking on getting this working, what version/source did you get your opencl drivers from? It is possible the particular driver you are using isn't fully compatible with the miner.

m6969p commented 7 years ago

droghio, why don't you just tell which opencl IS compatible.... does not work here either.

the description does not look as if only dedicated gpus would be supported since intensity adjustment is mentioned....

opencl amdgpu pro icdl 17.10-414273

headers 1.2-2013.10.23-1

the relevant output from the -h is: ...

     d - OpenCL device ID: Self-explanatory; it's the GPU index. Note that different
            OpenCL platforms will likely have different devices available. Default is 0.

Found 1 platform(s) on your computer. Devices on platform 0, "AMD Accelerated Parallel Processing": Error while fetching device ids.

mxiao2016 commented 6 years ago

Having the same problem here... Message: Failed to get number of OpenCL platforms with error code -1001 (clGetPlatformIDs).

nhancaheo commented 6 years ago

Got same error, any fix yet?

mrsaleh commented 6 years ago

run sia-gpu-miner with --help switch in command line or bash , It will list platforms on the end of the printed text. You can find your gpu platform , the execute it with -p [PlatformID] , for me sia-gpu-miner -p 1 worked just fine. default platform is 0 , which in my case , it was my cpu , and that caused the error.if you are not familiar with windows command line or bash ,you really need to read about that , or get help from a friend. good luck