Page 1 of 1

XMRig + GPU Mining on M1 MacBook Air?

Posted: Mon Jul 05, 2021 2:19 pm
by macminergod
Good news is XMRig recognizes the M1 Air GPU via OpenCL:

OPENCL GPU #0 n/a Apple M1 1000 MHz cu:8 mem:1024/10922 MB


No Support from CUDA:
disabled (dlopen(libxmrig-cuda.dylib, 1): image not found)
Xmrig Macbook Air M1 Gpu Mining Opencl

OpenCL Compile fails:

[2021-07-05 09:13:11.550] opencl use profile rx (1 thread) scratchpad 2048 KB
| # | GPU | BUS ID | INTENSITY | WSIZE | MEMORY | NAME
| 0 | 0 | n/a | 128 | 8 | 256 | Apple M1
* CUDA disabled (dlopen(libxmrig-cuda.dylib, 1): image not found)
[2021-07-05 09:13:11.562] opencl GPU #0 compiling...
UNSUPPORTED (log once): buildComputeProgram: cl2Metal failed
[2021-07-05 09:13:11.891] opencl error CL_BUILD_PROGRAM_FAILURE when calling clBuildProgram
BUILD LOG:
Compilation failed:

program_source:1736:1: warning: comparison of integers of different signs: 'uint32_t' (aka 'unsigned int') and 'int'
update_max(latency,(last_memory_op_slot+WORKERS_PER_HASH)/WORKERS_PER_HASH);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
program_source:1347:56: note: expanded from macro 'update_max'
#define update_max(value, next_value) do { if ((value) < (next_value)) (value) = (next_value); } while (0)
~~~~~ ^ ~~~~~~~~~~
program_source:1759:1: warning: comparison of integers of different signs: 'int32_t' (aka 'int') and 'unsigned int'
update_max(first_allowed_slot,latency*WORKERS_PER_HASH);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
program_source:1347:56: note: expanded from macro 'update_max'
[2021-07-05 09:13:11.892] opencl thread #0 failed with error CL_INVALID_PROGRAM
[2021-07-05 09:13:11.892] opencl thread #0 self-test failed
[2021-07-05 09:13:11.892] opencl disabled (failed to start threads)
* ABOUT XMRig/6.12.2 clang/12.0.5
* LIBS libuv/1.41.0 OpenSSL/1.1.1k hwloc/2.4.1
* HUGE PAGES unavailable
* 1GB PAGES unavailable
* CPU Apple M1 (1) 64-bit AES
L2:16.0 MB L3:0.0 MB 8C/8T NUMA:1
* MEMORY 8.4/16.0 GB (52%)
* DONATE 1%
* POOL #1 rx.unmineable.com:3333 algo rx/0
* COMMANDS hashrate, pause, resume, results, connection
[2021-07-05 09:13:06.220] config configuration saved to: "/Users/m1air/Desktop/xmrig-6.12.2/config.json"
* OPENCL #0 Apple/OpenCL 1.2 (May 8 2021 03:14:28)
* OPENCL GPU #0 n/a Apple M1 1000 MHz cu:8 mem:1024/10922 MB