Page 1 of 1

error CL_BUILD_PROGRAM_FAILURE when calling clBuildProgram (XMRig AMD)

Posted: Mon Mar 01, 2021 7:19 pm
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 5819 times

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

Xmrig Opencl Error Cl Invalid Operation Amd Mac Os
Xmrig Opencl Error Cl Invalid Operation Amd Mac Os (26.59 KiB) Viewed 5819 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