error CL_BUILD_PROGRAM_FAILURE when calling clBuildProgram (XMRig AMD)

All discussions around cryptocurrency mining on macOS and Apple products. Discussion around the most popular crypto coins today including Bitcoin, Ethereum, and more. Read our getting started guide to understanding cryptocurrency, what you need to get started, and how to earn. What's your Apple Mac setup? Hackintosh? eGPU's? Share your setup and details here.
Post Reply
User avatar
macminergod
Site Admin
Posts: 204
Joined: Mon Feb 22, 2021 7:41 pm

error CL_BUILD_PROGRAM_FAILURE when calling clBuildProgram (XMRig AMD)

Post by macminergod »

OPENCL error with dual GPU's. Tries to compile the Intel(R) UHD Graphics 630 which is not supported. Update the config.json file and remove the Intel(R) UHD Graphics 630 to get around this. However, it appears not all AMD cards + OpenCL in macOS will still work and you may receive

Code: Select all

error CL_INVALID_VALUE when calling clGetProgramInfo
and

Code: Select all

error CL_BUILD_PROGRAM_FAILURE when calling clBuildProgram


Also, keep in mind this post to NEVER copy your XMRig config files...



Remove Intel Uhd 630 From Xmrig Configuration
Remove Intel Uhd 630 From Xmrig Configuration (16.43 KiB) Viewed 9264 times

Xmrig Mac Os Cl Invalid Value Calling Cl Getporgraminfo
Xmrig Mac Os Cl Invalid Value Calling Cl Getporgraminfo (22.55 KiB) Viewed 9264 times

Xmrig Opencl Error Cl Invalid Operation Amd Mac Os
Xmrig Opencl Error Cl Invalid Operation Amd Mac Os (26.59 KiB) Viewed 9264 times

Code: Select all

error CL_BUILD_PROGRAM_FAILURE when calling clBuildProgram
=opencl   thread #0 failed with error CL_INVALID_PROGRAM
error CL_INVALID_VALUE when calling clGetProgramInfo
opencl   thread #0 self-test failed
opencl   disabled (failed to start threads)
Error CL_INVALID_OPERATION when calling clGetDeviceInfo, param 0x4037
<program source>:767:6: warning: no previous prototype for function 'get_byte32'
uint get_byte32(uint a,uint start_bit) { return (a>>start_bit)&0xFF; }
     ^
<program source>:1019:7: warning: no previous prototype for function 'rotr64'
ulong rotr64(ulong a,ulong shift) { return rotate(a,64-shift); }
      ^
<program source>:1043:6: warning: no previous prototype for function 'blake2b_512_process_single_block'
void blake2b_512_process_single_block(ulong *h,const ulong* m,uint blockTemplateSize)
     ^
<program source>:1104:6: warning: no previous prototype for function 'blake2b_512_process_double_block_32'
void blake2b_512_process_double_block_name(ulong *out,ulong* m,__global const ulong* in)
     ^
<program source>:1102:47: note: expanded from macro 'blake2b_512_process_double_block_n
For Miners Rigs, macOS Hardware GPUs --> here.
Post Reply