background

Mac Pro: "your miner was restarted" and a lot of errors

edited November 29 in Support

Hello FabulousPanda

I tried to use MacMiner 1.5.57 on a Mac Pro with OS 10.13.1.
I wanted to mine LBRY in the suprnova.cc-Pool.
I haven't set any manual flags or any manual configuration, just the standard.

After start I keep getting tons of error messages followed by the "your miner was restarted automatically after a sudden stop at..."

It seems that the first error ist "Error -11: Building Program (clBuildProgram)" but I'm not sure what that means...

I also tried sgminer without MacMiner. There I also get the Building Program error and after that it tells me that it isn't able to find sha256.cl even though the file ist there in /bin. I tried your hint here without success:
http://fabulouspanda.com/forum/discussion/1556/macminer-gpu-sgminer-wont-run-imac-radeon-580#latest

Thanks for your help in advance!
sansibar

Here comes the log from MacMiner:

Starting…[21:55:16] Set default algorithm to lbry
[21:55:16] Global quota greatest common denominator set to 1
[21:55:16] Started sgminer 
[21:55:16] * using Jansson 2.7
[21:55:16] Loaded configuration file /Users/****/Library/Application Support/MacMiner/lbryurls.conf
[21:55:16] CL Platform vendor: Apple
[21:55:16] CL Platform name: Apple
[21:55:16] CL Platform version: OpenCL 1.2 (Sep  6 2017 16:05:06)
[21:55:16] Platform devices: 2
[21:55:16]  0   AMD Radeon HD - FirePro D300 Compute Engine
[21:55:16]  1   AMD Radeon HD - FirePro D300 Compute Engine
[21:55:16] Default Devices = all
[21:55:16] set_devices(all)
[21:55:16] Loading settings from default_profile for pool 0
[21:55:16] Pool 0 Algorithm set to "lbry"
[21:55:16] Pool 0 devices set to "all"
[21:55:16] Pool 0 lookup gap set to "(null)"
[21:55:16] Pool 0 Intensity set to "1"
[21:55:16] Pool 0 Thread Concurrency set to "(null)"
[21:55:16] Pool 0 Shaders set to "(null)"
[21:55:16] Pool 0 Worksize set to "(null)"
[21:55:16] WARNING: GPU_MAX_ALLOC_PERCENT is not specified!
[21:55:16] WARNING: GPU_USE_SYNC_OBJECTS is not specified!
[21:55:16] Probing for an alive pool
[21:55:16] Testing lbry.suprnova.cc
[21:55:16] Succeeded delayed connect
[21:55:16] lbry.suprnova.cc stratum session id: ******
[21:55:16] lbry.suprnova.cc difficulty changed to 256
[21:55:18] Timed out waiting for response extranonce.subscribe
[21:55:18] Stratum authorisation success for lbry.suprnova.cc
[21:55:18] lbry.suprnova.cc alive
[21:55:18] Startup GPU initialization... Using settings from pool lbry.suprnova.cc.
[21:55:18] Startup Pool No = 0
[21:55:18] compare_pool_settings()
[21:55:18] set_devices(all)
[21:55:18] Switching to intensity: pool = 1, default = 1
[21:55:18] intensity -> 1
[21:55:18] Set GPU 0 to lbry
[21:55:18] Set GPU 1 to lbry
[21:55:18] Allocate new threads...
[21:55:18] Assign threads for device 0
[21:55:18] Thread 0 set pool = 0 (lbry.suprnova.cc)
[21:55:18] Init GPU thread 0 GPU 0 virtual GPU 0
[21:55:18] CL Platform vendor: Apple
[21:55:18] CL Platform name: Apple
[21:55:18] CL Platform version: OpenCL 1.2 (Sep  6 2017 16:05:06)
[21:55:18] Platform devices: 2
[21:55:18]  0   AMD Radeon HD - FirePro D300 Compute Engine
[21:55:18]  1   AMD Radeon HD - FirePro D300 Compute Engine
[21:55:18] List of devices:
[21:55:18]  0   AMD Radeon HD - FirePro D300 Compute Engine
[21:55:18]  1   AMD Radeon HD - FirePro D300 Compute Engine
[21:55:18] Selected 0: AMD Radeon HD - FirePro D300 Compute Engine
[21:55:18] Preferred vector width reported 1
[21:55:18] Max work group size reported 256
[21:55:18] Maximum work size for this GPU (0) is 256.
[21:55:18] Your GPU (#0) has 20 compute units, and all AMD cards in the 7 series or newer (GCN cards)       have 64 shaders per compute unit - this means it has 1280 shaders.
[21:55:18] Max mem alloc size is 536870912
[21:55:18] Using source file lbry.cl
[21:55:18] GPU 0: selecting lookup gap of 2
[21:55:18] GPU 0: selecting thread concurrency of 4032
[21:55:18] Setting worksize to 256
[21:55:18] Using binary file lbryAMD Radeon HD - FirePro D300 Compute Enginegw256l8.bin
[21:55:18] No binary found, generating from source
[21:55:18] Building binary lbryAMD Radeon HD - FirePro D300 Compute Enginegw256l8.bin
[21:55:18] Trying to open /Applications/MacMiner.app/Contents/Resources/sgminer/bin/lbry.cl...
[21:55:18] Trying to open /Applications/sgminer-macOS/MacMiner 1.5.57.app/Contents/Resources/sgminer/bin/lbry.cl...
[21:55:18] Using /Applications/sgminer-macOS/MacMiner 1.5.57.app/Contents/Resources/sgminer/bin/lbry.cl
[21:55:18] CompilerOptions: -I "/Applications/sgminer-macOS/MacMiner 1.5.57.app/Contents/Resources/sgminer/bin" -I "/Applications/sgminer-macOS/MacMiner 1.5.57.app/Contents/Resources/sgminer/bin/kernel" -I "." -D WORKSIZE=256 -I "/Applications/MacMiner.app/Contents/Resources/sgminer/bin"
[21:55:18] Error -11: Building Program (clBuildProgram)
[21:55:18] In file included from <program source>:4:
///Applications/sgminer-macOS/MacMiner 1.5.57.app/Contents/Resources/sgminer/bin/wolf-sha512.cl:55:7: warning: no previous prototype for function 'FAST_ROTR64_LO'
ulong FAST_ROTR64_LO(const uint2 x, const uint y) { return(as_ulong(amd_bitalign(x.s10, x, y))); }
      ^
///Applications/sgminer-macOS/MacMiner 1.5.57.app/Contents/Resources/sgminer/bin/wolf-sha512.cl:55:69: warning: implicit declaration of function 'amd_bitalign' is invalid in C99
ulong FAST_ROTR64_LO(const uint2 x, const uint y) { return(as_ulong(amd_bitalign(x.s10, x, y))); }
                                                                    ^
/System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4274:43: note: expanded from macro 'as_ulong'
#define as_ulong( _x )  __builtin_astype( _x, ulong )
                                          ^
In file included from <program source>:4:
///Applications/sgminer-macOS/MacMiner 1.5.57.app/Contents/Resources/sgminer/bin/wolf-sha512.cl:55:60: error: invalid reinterpretation: sizes of 'ulong' (aka 'unsigned long') and 'int' must match
ulong FAST_ROTR64_LO(const uint2 x, const uint y) { return(as_ulong(amd_bitalign(x.s10, x, y))); }
                                                           ^        ~~~~~~~~~~~~~~~~~~~~~~~~~
/System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4274:25: note: expanded from macro 'as_ulong'
#define as_ulong( _x )  __builtin_astype( _x, ulong )
                        ^
In file included from <program source>:4:
///Applications/sgminer-macOS/MacMiner 1.5.57.app/Contents/Resources/sgminer/bin/wolf-sha512.cl:56:7: warning: no previous prototype for function 'FAST_ROTR64_HI'
ulong FAST_ROTR64_HI(const uint2 x, const uint y) { return(as_ulong(amd_bitalign(x, x.s10, (y - 32)))); }
      ^
///Applications/sgminer-macOS/MacMiner 1.5.57.app/Contents/Resources/sgminer/bin/wolf-sha512.cl:56:60: error: invalid reinterpretation: sizes of 'ulong' (aka 'unsigned long') and 'int' must match
ulong FAST_ROTR64_HI(const uint2 x, const uint y) { return(as_ulong(amd_bitalign(x, x.s10, (y - 32)))); }
                                                           ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Comments

  • edited November 29
        /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4274:25: note: expanded from macro 'as_ulong'
        #define as_ulong( _x )  __builtin_astype( _x, ulong )
                                ^
        In file included from <program source>:4:
        ///Applications/sgminer-macOS/MacMiner 1.5.57.app/Contents/Resources/sgminer/bin/wolf-sha512.cl:73:6: warning: no previous prototype for function 'SHA2_512_STEP2'
        void SHA2_512_STEP2(const ulong *W, uint ord, ulong *r, int i)
             ^
        ///Applications/sgminer-macOS/MacMiner 1.5.57.app/Contents/Resources/sgminer/bin/wolf-sha512.cl:86:6: warning: no previous prototype for function 'SHA512Block'
        void SHA512Block(ulong *data, ulong *buf)
             ^
        In file included from <program source>:5:
        ///Applications/sgminer-macOS/MacMiner 1.5.57.app/Contents/Resources/sgminer/bin/ripemd160.cl:5:9: warning: 'F1' macro redefined
        #define F1(x, y, z)     ((x) ^ (y) ^ (z))
                ^
        ///Applications/sgminer-macOS/MacMiner 1.5.57.app/Contents/Resources/sgminer/bin/sha256.cl:18:9: note: previous definition is here
        #define F1(x, y, z) bitselect(z, y, x)
                ^
        In file included from <program source>:5:
        ///Applications/sgminer-macOS/MacMiner 1.5.57.app/Contents/Resources/sgminer/bin/ripemd160.cl:235:6: warning: no previous prototype for function 'RIPEMD160_ROUND_BODY'
        void RIPEMD160_ROUND_BODY(uint *in, uint *h)
             ^
        <program source>:7:9: warning: 'SWAP32' macro redefined
        #define SWAP32(x)    as_uint(as_uchar4(x).s3210)
                ^
        ///Applications/sgminer-macOS/MacMiner 1.5.57.app/Contents/Resources/sgminer/bin/sha256.cl:3:9: note: previous definition is here
        #define SWAP32(a)       (as_uint(as_uchar4(a).wzyx))
                ^
        [21:55:18] Failed to init GPU thread 0, disabling device 0
        [21:55:18] Restarting the GPU from the menu will not fix this.
        [21:55:18] Re-check your configuration and try restarting.
        [21:55:18] thread_prepare failed for thread 0
        [21:55:18] Assign threads for device 1
    

    ...and so on in an endless loop...

  • Getting sgminer to compile for macOS was a matter of applying some quick fixes to the code on GitHub and not all of the algorithms work... unfortunately it looks as though lbry is one of those!

  • Thanks, FabulousPanda!
    Are there any plans to correct that in the near future?

  • It's beyond me unfortunately, I did what I could for Mac support on the sgminer githubs but it needs someone with the kernel programming knowhow to take a look at it.

Leave a Comment

Drop image/file