Consistent "clBuildProgram() failed with error (-11)" after upgrading iMac to 10.15.7 (Catalina)

Questions and Answers : Macintosh : Consistent "clBuildProgram() failed with error (-11)" after upgrading iMac to 10.15.7 (Catalina)
Message board moderation

To post messages, you must log in.

AuthorMessage
Jon Fox

Send message
Joined: 6 Sep 09
Posts: 6
Credit: 553,870,699
RAC: 36,766
Message 3361 - Posted: 14 Jun 2021, 16:28:09 UTC
Last modified: 14 Jun 2021, 16:30:50 UTC

The following error is occurring for all GPU tasks. If you would also like to see the BOINC log data, it is available. Thanks in advance for any assistance you can provide.

Jon Fox

    <core_client_version>7.16.11</core_client_version>
    <![CDATA[
    <message>
    process exited with code 245 (0xf5, -11)</message>
    <stderr_txt>
    Collatz Conjecture Sieve 1.40 OS X x86_64 for OpenCL
    Written by Slicker (Jon Sonntag) of team SETI.USA
    Based on the AMD Brook+ kernels by Gipsel of team Planet 3DNow!
    Sieve code and OpenCL optimization provided by Sosiris of team BOINC@Taiwan
    Collatz Config Settings:
    verbose 1 (yes)
    kernels/reduction 64
    threads 2^8 (256)
    lut_size 20 (8388608 bytes)
    sieve_size 2^30 (51085096 bytes)
    sleep 1
    cache_sieve 1 (yes)
    reducecpu 0 (no)
    Processor Type NVIDIA
    BUILD LOG

    clBuildProgram() failed with error (-11)

    Error -11. Processing Aborted.
    18:18:24 (1222): called boinc_finish

    </stderr_txt>
    ]]>

ID: 3361 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile mikey
Avatar

Send message
Joined: 11 Aug 09
Posts: 880
Credit: 24,523,632,110
RAC: 27
Message 3362 - Posted: 15 Jun 2021, 10:34:48 UTC - in response to Message 3361.  

The following error is occurring for all GPU tasks. If you would also like to see the BOINC log data, it is available. Thanks in advance for any assistance you can provide.

Jon Fox

    <core_client_version>7.16.11</core_client_version>
    <![CDATA[
    <message>
    process exited with code 245 (0xf5, -11)</message>
    <stderr_txt>
    Collatz Conjecture Sieve 1.40 OS X x86_64 for OpenCL
    Written by Slicker (Jon Sonntag) of team SETI.USA
    Based on the AMD Brook+ kernels by Gipsel of team Planet 3DNow!
    Sieve code and OpenCL optimization provided by Sosiris of team BOINC@Taiwan
    Collatz Config Settings:
    verbose 1 (yes)
    kernels/reduction 64
    threads 2^8 (256)
    lut_size 20 (8388608 bytes)
    sieve_size 2^30 (51085096 bytes)
    sleep 1
    cache_sieve 1 (yes)
    reducecpu 0 (no)
    Processor Type NVIDIA
    BUILD LOG

    clBuildProgram() failed with error (-11)

    Error -11. Processing Aborted.
    18:18:24 (1222): called boinc_finish

    </stderr_txt>
    ]]>



I would first remove the optimization codes and see if it works okay then, it could just be your gpu doesn't like the codes or they need to be scaled back a bit but until you can run a unit successfully you won't know that.
ID: 3362 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Jon Fox

Send message
Joined: 6 Sep 09
Posts: 6
Credit: 553,870,699
RAC: 36,766
Message 3363 - Posted: 18 Jun 2021, 19:00:25 UTC - in response to Message 3362.  

Thank you for replying. I've been running with these optimization parms for several years but you're right, I'll set them aside and run a totally default setting environment to confirm that they are not the culprit.

Thanks again.
Jon
ID: 3363 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Jon Fox

Send message
Joined: 6 Sep 09
Posts: 6
Credit: 553,870,699
RAC: 36,766
Message 3364 - Posted: 18 Jun 2021, 22:51:11 UTC - in response to Message 3363.  

Results from one of several runs with no optimization parms:


    <core_client_version>7.16.14</core_client_version>
    <![CDATA[
    <message>
    process exited with code 245 (0xf5, -11)</message>
    <stderr_txt>
    Collatz Conjecture Sieve 1.40 OS X x86_64 for OpenCL
    Written by Slicker (Jon Sonntag) of team SETI.USA
    Based on the AMD Brook+ kernels by Gipsel of team Planet 3DNow!
    Sieve code and OpenCL optimization provided by Sosiris of team BOINC@Taiwan
    Read config error: Cannot locate ../../projects/boinc.thesonntags.com_collatz/collatz_sieve_1.40_x86_64-apple-darwin__nvidia_opencl.config
    Processor Type NVIDIA
    BUILD LOG

    clBuildProgram() failed with error (-11)

    Error -11. Processing Aborted.
    15:08:44 (8844): called boinc_finish

    </stderr_txt>
    ]]>



Thanks again in advance for any help with this issue.
Jon Fox

ID: 3364 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile mikey
Avatar

Send message
Joined: 11 Aug 09
Posts: 880
Credit: 24,523,632,110
RAC: 27
Message 3365 - Posted: 19 Jun 2021, 3:02:18 UTC - in response to Message 3364.  
Last modified: 19 Jun 2021, 3:02:46 UTC

Results from one of several runs with no optimization parms:


    <core_client_version>7.16.14</core_client_version>
    <![CDATA[
    <message>
    process exited with code 245 (0xf5, -11)</message>
    <stderr_txt>
    Collatz Conjecture Sieve 1.40 OS X x86_64 for OpenCL
    Written by Slicker (Jon Sonntag) of team SETI.USA
    Based on the AMD Brook+ kernels by Gipsel of team Planet 3DNow!
    Sieve code and OpenCL optimization provided by Sosiris of team BOINC@Taiwan
    Read config error: Cannot locate ../../projects/boinc.thesonntags.com_collatz/collatz_sieve_1.40_x86_64-apple-darwin__nvidia_opencl.config
    Processor Type NVIDIA
    BUILD LOG

    clBuildProgram() failed with error (-11)

    Error -11. Processing Aborted.
    15:08:44 (8844): called boinc_finish

    </stderr_txt>
    ]]>



Thanks again in advance for any help with this issue.
Jon Fox



When I did a search of Boinc Error codes I found this:

Exit code -11
Exit code -11 is a floating point rounding operation error. Part of the outcome of the calculation was found to be faulty, so calculations were halted. Possible causes: heat, corrupt driver, broken hardware.
https://boinc.mundayweb.com/wiki/index.php?title=Exit_code_-11
ID: 3365 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Jon Fox

Send message
Joined: 6 Sep 09
Posts: 6
Credit: 553,870,699
RAC: 36,766
Message 3366 - Posted: 19 Jun 2021, 11:44:26 UTC - in response to Message 3365.  

Yes, I came across the same item in one of my searches. With the timing "coincidence" of the error showing up immediately after my upgrade I posted here to see if anyone else in the community had seen a similar error. I suspect that 10.15.7 corrupted my NVIDIA driver.

I'll leave the post up in case someone does run across it and has something to add.


Thanks again.
Jon Fox
ID: 3366 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Tigers_Dave

Send message
Joined: 23 Sep 12
Posts: 189
Credit: 70,203,862,512
RAC: 70,845,239
Message 3405 - Posted: 1 Sep 2021, 20:31:00 UTC - in response to Message 3366.  

Jon:

Thanks so much for posting your query. You are running 10.15.7 on a machine that has an NVIDIA GPU? Could you please provide us with more details on your hardware? I am not aware of a Mac that supports both 10.15.7 and an NVIDIA GPU under an Apple-sanctioned configuration.

Regards,

Dave
ID: 3405 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile Slicker
Project administrator

Send message
Joined: 11 Jun 09
Posts: 76
Credit: 943,644,517
RAC: 0
Message 3407 - Posted: 2 Sep 2021, 0:35:18 UTC - in response to Message 3365.  

Error code 11 is actually the error from Apple's OpenCL compiler, not BOINC. It occurs while OpenCL is compiling the OpenCL kernels. This is done before any calculations are done. Also, Collatz doesn't use floating point arithmetic. It only uses bit shifts and addition. Apple has had "glitches" with their OpenCL compiler in the past. I even submitted code to both Apple and nVidia years ago and the same error keeps popping up. If I disable optimization, it works fine but takes way longer to complete a work unit. Apple has also had issues where warnings were considered errors and some of the OpenCL optimizations are dependent on the version of OpenCL that is bring run. If the compiler identifies itself as OpenCL v2 vs OpenCL v1 then the kernel uses the v2 optimizations. If the compiler is only "kind of" v2 (like Microsoft's browsers were "kind of" HTML 4 or HTML 5 compliant) and an optimization isn't fully supported, it will fail to compile. On Windows and Linux, the display drive contains the OpenCL compiler so upgrading the nVidia driver installs the latest OpenCL compiler as well. But, Apple includes OpenCL as part of the operating system, so you really can't change it. You are stuck until a new version of OS X is released.
ID: 3407 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Tigers_Dave

Send message
Joined: 23 Sep 12
Posts: 189
Credit: 70,203,862,512
RAC: 70,845,239
Message 3408 - Posted: 8 Sep 2021, 16:49:15 UTC - in response to Message 3366.  

Hi Jon:

Sorry that you are having problems with 10.15.7 and Collatz. I agree with you that the 10.15.7 update may be giving you problems. I also agree with Slicker that waiting for another update may be the only solution. Have you tried installing the most recent update? A Catalina update was released in late July. https://support.apple.com/en-us/HT201222

Regards,

Dave
ID: 3408 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote

Questions and Answers : Macintosh : Consistent "clBuildProgram() failed with error (-11)" after upgrading iMac to 10.15.7 (Catalina)


©2021 Jon Sonntag; All rights reserved