Skip to content

Commit

Permalink
Merge pull request #5047 from BOINC/dpa_apple_gpu
Browse files Browse the repository at this point in the history
scheduler: set type of Apple GPUs to "Apple"
  • Loading branch information
CharlieFenton authored Dec 27, 2022
2 parents 572f7c0 + 8686342 commit 4bd8dd3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/coproc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,13 @@ int COPROC::parse(XML_PARSER& xp) {
while (!xp.get_tag()) {
if (!xp.is_tag) continue;
if (xp.match_tag("/coproc")) {
// The client reports the type of Apple GPUs as the model
// (e.g. "Apple M1").
// Change it to just "Apple".
//
if (strstr(type, "Apple")) {
strcpy(type, "Apple");
}
if (!strlen(type)) return ERR_XML_PARSE;
clear_usage();
return 0;
Expand Down

0 comments on commit 4bd8dd3

Please sign in to comment.