Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac: fix Apple Silicon GPU errors after MacOS update #5502

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

CharlieFenton
Copy link
Contributor

User boinc_master should have primary group boinc_master. User boincproject should have primary group boincproject.
But updating MacOS to a new version sometimes changes the PrimaryGroupID of users boinc_master and boincproject to staff (20). This seems to be responsible for OpenCL projects failing after a MacOS update with the following error:
UNSUPPORTED (log once): buildComputeProgram: cl2Metal failed <built-in>:1:10: fatal error: cannot open file './opencl-c.h': Permission denied #include "opencl-c.h"

Fixes #5456

This PR makes the following changes:

  • Added a check of the Primary Group IDs of users boinc_master and boinc_project along with the other permissions checks when the Mac Manager or client is launched. If incorrect, refuses to run and displays an alert "BOINC ownership or permissions are not set properly; please reinstall BOINC".
  • The Mac Installer: always sets Primary Group of users boinc_master boinc_project. (It previously did that only if those users did not already exist.)

…c_project; refuse to run if wrong

Mac Installer: always set Primary Group of users boinc_master, boinc_project
@AenBleidd AenBleidd merged commit dbd46a8 into master Jan 26, 2024
86 checks passed
@AenBleidd AenBleidd deleted the fix_Apple_Silicon_GPU_permssions_error branch January 26, 2024 10:51
CharlieFenton pushed a commit that referenced this pull request Jan 30, 2024
…error

Mac: fix Apple Silicon GPU errors after MacOS update
@CharlieFenton
Copy link
Contributor Author

I have built and uploaded BOINC 7.24.3. This is a hot fix for issue #5456. The changes affect only the permissions checks when BOINC is started and the way the BOINC installer sets permissions. It makes no changes to the way BOINC computes or interacts with project servers. Therefore, I have immediately promoted it to recommended version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[macOS] [OpenCL] [ARM] Boinc AppleM (ARM) client cannot run OpenCL programs after update to Sonoma
2 participants