PrimeGrid
Please visit donation page to help the project cover running costs for this month

Toggle Menu

Join PrimeGrid

Returning Participants

Community

Leader Boards

Results

Other

drummers-lowrise

Advanced search

Message boards : Problems and Help : Discrete GPU on MacBook Pro

Author Message
Profile lunchboxkwdm
Send message
Joined: 22 Nov 14
Posts: 6
ID: 374284
Credit: 65,244,866
RAC: 49,260
321 LLR Ruby: Earned 2,000,000 credits (2,005,652)Cullen LLR Ruby: Earned 2,000,000 credits (2,006,528)ESP LLR Ruby: Earned 2,000,000 credits (3,267,950)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,019,682)PPS LLR Turquoise: Earned 5,000,000 credits (5,000,327)PSP LLR Ruby: Earned 2,000,000 credits (4,263,219)SoB LLR Turquoise: Earned 5,000,000 credits (5,001,934)SR5 LLR Ruby: Earned 2,000,000 credits (2,003,879)SGS LLR Ruby: Earned 2,000,000 credits (2,000,587)TRP LLR Turquoise: Earned 5,000,000 credits (5,000,210)Woodall LLR Ruby: Earned 2,000,000 credits (2,000,402)321 Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,002,277)Generalized Cullen/Woodall Sieve (suspended) Ruby: Earned 2,000,000 credits (2,003,048)PPS Sieve Ruby: Earned 2,000,000 credits (2,012,487)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Silver: Earned 100,000 credits (128,564)TRP Sieve (suspended) Silver: Earned 100,000 credits (111,011)AP 26/27 Ruby: Earned 2,000,000 credits (3,157,583)GFN Turquoise: Earned 5,000,000 credits (8,255,526)WW Jade: Earned 10,000,000 credits (10,004,000)
Message 146569 - Posted: 12 Dec 2020 | 1:43:19 UTC

I've been testing some work units on my 2017 MacBook Pro to see what will actually run on the discrete GPU. For some context, the computer has both an Intel "integrated" HD Graphics 630 and an AMD "discrete" Radeon Pro 560, and can dynamically switch between the two, based on what is needed. Both are listed as "device 0" on their separate buses.

So far, I've gotten AP and WW to work with the AMD GPU, but PPS-sieve and all GFNs try to use the Intel device and fail. Has anyone else gotten PPS-sieve or GFN to work with this configuration? I know it's a niche setup, and if there's no answer, it's not a big deal. I'm enjoying chugging through WW work units.

zombie67 [MM]Project donor
Volunteer tester
Avatar
Send message
Joined: 30 Nov 06
Posts: 275
ID: 4065
Credit: 2,405,909,534
RAC: 2,021,782
Discovered 15 mega primesEliminated 1 conjecture "k"Found 3 primes in the 2020 Tour de PrimesFound 1 mega prime in the 2020 Tour de PrimesFound 3 primes in the 2021 Tour de PrimesFound 3 mega primes in the 2021 Tour de Primes321 LLR Sapphire: Earned 20,000,000 credits (21,082,370)Cullen LLR Sapphire: Earned 20,000,000 credits (22,024,163)ESP LLR Sapphire: Earned 20,000,000 credits (24,132,201)Generalized Cullen/Woodall LLR Sapphire: Earned 20,000,000 credits (21,755,048)PPS LLR Double Bronze: Earned 100,000,000 credits (101,530,141)PSP LLR Sapphire: Earned 20,000,000 credits (34,973,901)SoB LLR Sapphire: Earned 20,000,000 credits (22,051,952)SR5 LLR Emerald: Earned 50,000,000 credits (55,942,657)SGS LLR Sapphire: Earned 20,000,000 credits (20,157,727)TRP LLR Sapphire: Earned 20,000,000 credits (22,311,003)Woodall LLR Sapphire: Earned 20,000,000 credits (20,786,101)321 Sieve (suspended) Emerald: Earned 50,000,000 credits (50,559,131)Cullen/Woodall Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,297,856)Generalized Cullen/Woodall Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,711,622)PPS Sieve Double Gold: Earned 500,000,000 credits (652,697,901)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Jade: Earned 10,000,000 credits (11,707,274)TRP Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,316,578)AP 26/27 Double Silver: Earned 200,000,000 credits (213,374,973)GFN Double Gold: Earned 500,000,000 credits (525,632,220)WW Double Gold: Earned 500,000,000 credits (501,784,000)PSA Emerald: Earned 50,000,000 credits (52,054,411)
Message 146602 - Posted: 12 Dec 2020 | 15:36:37 UTC - in response to Message 146569.

Add this to your cc_config.xml:

<ignore_intel_dev>0</ignore_intel_dev>


You may need to change the device number. Look at the event log at startup to see what number BOINC assigns it.
____________
Reno, NV

Profile lunchboxkwdm
Send message
Joined: 22 Nov 14
Posts: 6
ID: 374284
Credit: 65,244,866
RAC: 49,260
321 LLR Ruby: Earned 2,000,000 credits (2,005,652)Cullen LLR Ruby: Earned 2,000,000 credits (2,006,528)ESP LLR Ruby: Earned 2,000,000 credits (3,267,950)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,019,682)PPS LLR Turquoise: Earned 5,000,000 credits (5,000,327)PSP LLR Ruby: Earned 2,000,000 credits (4,263,219)SoB LLR Turquoise: Earned 5,000,000 credits (5,001,934)SR5 LLR Ruby: Earned 2,000,000 credits (2,003,879)SGS LLR Ruby: Earned 2,000,000 credits (2,000,587)TRP LLR Turquoise: Earned 5,000,000 credits (5,000,210)Woodall LLR Ruby: Earned 2,000,000 credits (2,000,402)321 Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,002,277)Generalized Cullen/Woodall Sieve (suspended) Ruby: Earned 2,000,000 credits (2,003,048)PPS Sieve Ruby: Earned 2,000,000 credits (2,012,487)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Silver: Earned 100,000 credits (128,564)TRP Sieve (suspended) Silver: Earned 100,000 credits (111,011)AP 26/27 Ruby: Earned 2,000,000 credits (3,157,583)GFN Turquoise: Earned 5,000,000 credits (8,255,526)WW Jade: Earned 10,000,000 credits (10,004,000)
Message 146612 - Posted: 12 Dec 2020 | 21:08:31 UTC - in response to Message 146602.

That didn't change anything. Now, I'm getting this new output in the log:

Sat Dec 12 15:00:22 2020 | PrimeGrid | Config: excluded GPU. Type: intel_gpu. App: all. Device: 0
Sat Dec 12 15:00:22 2020 | | Config: ignoring Intel GPU 0
Sat Dec 12 15:00:22 2020 | PrimeGrid | cc_config.xml: bad type 'intel_gpu' in GPU exclusion; valid types: ATI

Here's the relevant part of cc_config:
<exclude_gpu>
<url>http://www.primegrid.com/</url>
<type>intel_gpu</type>
<device_num>0</device_num>
</exclude_gpu>
<ignore_intel_dev>0</ignore_intel_dev>

How do you change the device number? Both devices are listed as "0" on their own buses.

stream
Volunteer moderator
Project administrator
Volunteer developer
Volunteer tester
Send message
Joined: 1 Mar 14
Posts: 923
ID: 301928
Credit: 513,315,826
RAC: 3,808
Discovered 1 mega primeFound 1 prime in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de PrimesFound 1 prime in the 2020 Tour de PrimesFound 1 prime in the 2021 Tour de Primes321 LLR Jade: Earned 10,000,000 credits (10,011,570)Cullen LLR Jade: Earned 10,000,000 credits (10,009,374)ESP LLR Jade: Earned 10,000,000 credits (10,009,221)Generalized Cullen/Woodall LLR Jade: Earned 10,000,000 credits (10,012,217)PPS LLR Jade: Earned 10,000,000 credits (16,282,180)PSP LLR Jade: Earned 10,000,000 credits (10,044,081)SoB LLR Jade: Earned 10,000,000 credits (10,064,750)SR5 LLR Jade: Earned 10,000,000 credits (10,002,051)SGS LLR Jade: Earned 10,000,000 credits (10,001,295)TRP LLR Jade: Earned 10,000,000 credits (10,002,411)Woodall LLR Jade: Earned 10,000,000 credits (10,013,921)321 Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,004,228)Generalized Cullen/Woodall Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,047,667)PPS Sieve Sapphire: Earned 20,000,000 credits (20,866,490)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,043,271)TRP Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,015,177)AP 26/27 Sapphire: Earned 20,000,000 credits (20,045,194)GFN Emerald: Earned 50,000,000 credits (55,355,287)WW Sapphire: Earned 20,000,000 credits (20,184,000)PSA Double Silver: Earned 200,000,000 credits (200,301,443)
Message 146624 - Posted: 13 Dec 2020 | 11:39:04 UTC

As far as can remember it's impossible without rebuilding applications with latest Boinc libraries and use these new APIs to select correct GPU.

Running Boinc on two different types of GPUs on a Mac was a problem for a while because few mad design choices are meeting together here:

1. Boinc enumerates NVidia, ATI/AMD and Intel GPU separately. I.e. it'll tell application "use NVIDIA device #0" instead of logical way "use device with system id #1".

2. How can application find out that given device is, for example, NVIDIA? It must scan text descriptions!!! of OpenCL platform names and try to guess which manufacturer it is.

3. And, finally, what is AMD OpenCL platform name of Mac? AMD? ATI? No. It's "Apple".

This leads to fact that many old Boinc applications on Mac often just falls back to first GPU. Application must be rewritten to use GPU selection function provided by Boinc. It, at least, gathers all madness at one place and GPU selection logic becomes compatible with detection logic. This is relatively recent change and it wasn't available in previous versions of Boinc libraries.

zombie67 [MM]Project donor
Volunteer tester
Avatar
Send message
Joined: 30 Nov 06
Posts: 275
ID: 4065
Credit: 2,405,909,534
RAC: 2,021,782
Discovered 15 mega primesEliminated 1 conjecture "k"Found 3 primes in the 2020 Tour de PrimesFound 1 mega prime in the 2020 Tour de PrimesFound 3 primes in the 2021 Tour de PrimesFound 3 mega primes in the 2021 Tour de Primes321 LLR Sapphire: Earned 20,000,000 credits (21,082,370)Cullen LLR Sapphire: Earned 20,000,000 credits (22,024,163)ESP LLR Sapphire: Earned 20,000,000 credits (24,132,201)Generalized Cullen/Woodall LLR Sapphire: Earned 20,000,000 credits (21,755,048)PPS LLR Double Bronze: Earned 100,000,000 credits (101,530,141)PSP LLR Sapphire: Earned 20,000,000 credits (34,973,901)SoB LLR Sapphire: Earned 20,000,000 credits (22,051,952)SR5 LLR Emerald: Earned 50,000,000 credits (55,942,657)SGS LLR Sapphire: Earned 20,000,000 credits (20,157,727)TRP LLR Sapphire: Earned 20,000,000 credits (22,311,003)Woodall LLR Sapphire: Earned 20,000,000 credits (20,786,101)321 Sieve (suspended) Emerald: Earned 50,000,000 credits (50,559,131)Cullen/Woodall Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,297,856)Generalized Cullen/Woodall Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,711,622)PPS Sieve Double Gold: Earned 500,000,000 credits (652,697,901)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Jade: Earned 10,000,000 credits (11,707,274)TRP Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,316,578)AP 26/27 Double Silver: Earned 200,000,000 credits (213,374,973)GFN Double Gold: Earned 500,000,000 credits (525,632,220)WW Double Gold: Earned 500,000,000 credits (501,784,000)PSA Emerald: Earned 50,000,000 credits (52,054,411)
Message 146626 - Posted: 13 Dec 2020 | 14:58:16 UTC - in response to Message 146612.

That didn't change anything.


I have found that sometimes, just requesting BOINC go re-read config files doesn't work when it comes to controlling the GPUs. So I will reboot the machine just to be sure. Perhaps try that if you haven't already.

Another thing to check: System preferences. There used to be a setting to tell the Mac to always use the discrete GPU (along with a warning that it will use more power/battery). I am not sure if that setting is still there, since I don't have one of those Macs any more. But if it exists, make sure that it is selected.
____________
Reno, NV

zombie67 [MM]Project donor
Volunteer tester
Avatar
Send message
Joined: 30 Nov 06
Posts: 275
ID: 4065
Credit: 2,405,909,534
RAC: 2,021,782
Discovered 15 mega primesEliminated 1 conjecture "k"Found 3 primes in the 2020 Tour de PrimesFound 1 mega prime in the 2020 Tour de PrimesFound 3 primes in the 2021 Tour de PrimesFound 3 mega primes in the 2021 Tour de Primes321 LLR Sapphire: Earned 20,000,000 credits (21,082,370)Cullen LLR Sapphire: Earned 20,000,000 credits (22,024,163)ESP LLR Sapphire: Earned 20,000,000 credits (24,132,201)Generalized Cullen/Woodall LLR Sapphire: Earned 20,000,000 credits (21,755,048)PPS LLR Double Bronze: Earned 100,000,000 credits (101,530,141)PSP LLR Sapphire: Earned 20,000,000 credits (34,973,901)SoB LLR Sapphire: Earned 20,000,000 credits (22,051,952)SR5 LLR Emerald: Earned 50,000,000 credits (55,942,657)SGS LLR Sapphire: Earned 20,000,000 credits (20,157,727)TRP LLR Sapphire: Earned 20,000,000 credits (22,311,003)Woodall LLR Sapphire: Earned 20,000,000 credits (20,786,101)321 Sieve (suspended) Emerald: Earned 50,000,000 credits (50,559,131)Cullen/Woodall Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,297,856)Generalized Cullen/Woodall Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,711,622)PPS Sieve Double Gold: Earned 500,000,000 credits (652,697,901)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Jade: Earned 10,000,000 credits (11,707,274)TRP Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,316,578)AP 26/27 Double Silver: Earned 200,000,000 credits (213,374,973)GFN Double Gold: Earned 500,000,000 credits (525,632,220)WW Double Gold: Earned 500,000,000 credits (501,784,000)PSA Emerald: Earned 50,000,000 credits (52,054,411)
Message 146639 - Posted: 14 Dec 2020 | 8:22:55 UTC

So this just happened:

I have a Mac mini with an Intel CPU which includes the integrated GPU. It is attached to an eGPU with an AMD RX 580. I use the eGPU to crunch PPS since it's not competitive on other projects.

Anyway, I had to reboot the machine for an update. Upon restart, BOINC started running the task on the Integrated GPU, instead of the eGPU. This is even with the line in the cc_config.xml that I posted earlier. This is not the first time this has happened. So I quit BOINC. I restarted BOINC. And now everything is back to normal. CPU tasks running on the CPU. GPU task running on the eGPU.
____________
Reno, NV

Post to thread

Message boards : Problems and Help : Discrete GPU on MacBook Pro

[Return to PrimeGrid main page]
DNS Powered by DNSEXIT.COM
Copyright © 2005 - 2021 Rytis Slatkevičius (contact) and PrimeGrid community. Server load 2.82, 2.97, 3.07
Generated 28 Sep 2021 | 14:39:37 UTC