New GPU: AMD M370X (Macbook Pro 15" mid-2015, running Linux)

Post requests to add new GPUs to the official whitelist here.

Moderators: Site Moderators, FAHC Science Team

Post Reply
Carrot
Posts: 5
Joined: Sat Mar 21, 2020 9:26 am

New GPU: AMD M370X (Macbook Pro 15" mid-2015, running Linux)

Post by Carrot »

Hi

I tried searching the GPUs.txt for the GPU of my mid-2015 MBP 15" with the AMD M370X GPU, didn't find any with the full string. I found one with part of the first string, but the second isn't there at all.

GPU: AMD ATI Radeon HD 8870M / R9 M270X/M370X according to neofetch

Anyway, here's my output:

Code: Select all

FAHClient --lspci
VendorID:DeviceID:PCI Bus:PCI Slot:PCI function:Vendor Name:Description
0x8086:0x0d04:0:0:0:Intel Corporation:
0x8086:0x0d01:0:1:0:Intel Corporation:
0x8086:0x0d05:0:1:1:Intel Corporation:
0x8086:0x0d09:0:1:2:Intel Corporation:
0x8086:0x8c31:0:20:0:Intel Corporation:
0x8086:0x8c3a:0:22:0:Intel Corporation:
0x8086:0x8c20:0:27:0:Intel Corporation:
0x8086:0x8c10:0:28:0:Intel Corporation:
0x8086:0x8c14:0:28:2:Intel Corporation:
0x8086:0x8c16:0:28:3:Intel Corporation:
0x8086:0x8c4b:0:31:0:Intel Corporation:
0x8086:0x8c22:0:31:3:Intel Corporation:
0x8086:0x8c24:0:31:6:Intel Corporation:
0x1002:0x6821:1:0:0:Advanced Micro Devices, Inc. [AMD/ATI]:
0x1002:0xaab0:1:0:1:Advanced Micro Devices, Inc. [AMD/ATI]:
0x8086:0x156d:6:0:0:Intel Corporation:
0x8086:0x156d:7:0:0:Intel Corporation:
0x8086:0x156d:7:3:0:Intel Corporation:
0x8086:0x156d:7:4:0:Intel Corporation:
0x8086:0x156d:7:5:0:Intel Corporation:
0x8086:0x156d:7:6:0:Intel Corporation:
0x8086:0x156c:8:0:0:Intel Corporation:
0x144d:0xa801:2:0:0:Samsung Electronics Co Ltd:
0x14e4:0x43ba:4:0:0:Broadcom Corporation:
0x14e4:0x1570:5:0:0:Broadcom Corporation:
If neccessary, I'll upload a copy of my log.txt too. Afaict, there's no upload-doc feature on the board, so I'll have to put in in a pastebin or some other means.
Joe_H
Site Admin
Posts: 7856
Joined: Tue Apr 21, 2009 4:41 pm
Hardware configuration: Mac Pro 2.8 quad 12 GB smp4
MacBook Pro 2.9 i7 8 GB smp2
Location: W. MA

Re: New GPU: AMD M370X (Macbook Pro 15" mid-2015, running Li

Post by Joe_H »

GPU folding is not supported using the macOS, but the device ID for the GPU is listed, the first AMD item in the output:

0x1002:0x6821:1:5:[Radeon HD 8800M Series]

The description field was probably entered years ago when the first GPUs with this chip were released by AMD. For later ones AMD just used the same ID and the list was never updated. But it would not matter for the client, it uses the description only for display, and uses the ID for setting things up.

Booted up into Linux or Windows your MBP should be able to use this GPU, but a quick lookup did not show whether it supports use of Double Precision calculations.
Image

iMac 2.8 i7 12 GB smp8, Mac Pro 2.8 quad 12 GB smp6
MacBook Pro 2.9 i7 8 GB smp3
Carrot
Posts: 5
Joined: Sat Mar 21, 2020 9:26 am

Re: New GPU: AMD M370X (Macbook Pro 15" mid-2015, running Li

Post by Carrot »

Joe_H wrote:GPU folding is not supported using the macOS, but the device ID for the GPU is listed, the first AMD item in the output:

0x1002:0x6821:1:5:[Radeon HD 8800M Series]

The description field was probably entered years ago when the first GPUs with this chip were released by AMD. For later ones AMD just used the same ID and the list was never updated. But it would not matter for the client, it uses the description only for display, and uses the ID for setting things up.

Booted up into Linux or Windows your MBP should be able to use this GPU, but a quick lookup did not show whether it supports use of Double Precision calculations.
Aha, I see :)

As to actually using the GPU, I'm currently running Linux on it (Kubuntu 19.10), with Kisak PPA for latest Mesa and 5.5.3 kernel, but the web interface for FAH only show it using the CPU. Is there some option/parameter that have to be set by me to enable it to run on GPU?
Joe_H
Site Admin
Posts: 7856
Joined: Tue Apr 21, 2009 4:41 pm
Hardware configuration: Mac Pro 2.8 quad 12 GB smp4
MacBook Pro 2.9 i7 8 GB smp2
Location: W. MA

Re: New GPU: AMD M370X (Macbook Pro 15" mid-2015, running Li

Post by Joe_H »

Under Linux you need the AMD proprietary drivers, OpenCL support from them, and possibly the OpenCL dev kit installed. 19.10 has had some other issues reported, I don't remember all of the details. But mostly connected with the client using older libraries for the code. So there might be some dependencies to take care of.

If the installer did not "see" the GPU at install time it sets an option that you will need to change. In FAHControl use Configure and click on the Expert tab. If the option gpu is there and set to false, remove it and set the option gpu and set that to true. Save the changes and restart the FAHClient process or reboot.

The next time FAHClient starts it should detect the GPU and allow adding folding slot for it.
Image

iMac 2.8 i7 12 GB smp8, Mac Pro 2.8 quad 12 GB smp6
MacBook Pro 2.9 i7 8 GB smp3
JimboPalmer
Posts: 2573
Joined: Mon Feb 16, 2009 4:12 am
Location: Greenwood MS USA

Re: New GPU: AMD M370X (Macbook Pro 15" mid-2015, running Li

Post by JimboPalmer »

https://www.techpowerup.com/gpu-specs/r ... tion.c2730

This card does support OpenCL 1.2 and Double Precision floating point math.
Tsar of all the Rushers
I tried to remain childlike, all I achieved was childish.
A friend to those who want no friends
Carrot
Posts: 5
Joined: Sat Mar 21, 2020 9:26 am

Re: New GPU: AMD M370X (Macbook Pro 15" mid-2015, running Li

Post by Carrot »

Joe_H wrote:Under Linux you need the AMD proprietary drivers, OpenCL support from them, and possibly the OpenCL dev kit installed. 19.10 has had some other issues reported, I don't remember all of the details. But mostly connected with the client using older libraries for the code. So there might be some dependencies to take care of.
Any special reason for requiring proprietary (AMDGPU-PRO) drivers on Linux? There seems at least to be some dependenciy issues with installing the FAHControl package.
Joe_H wrote:If the installer did not "see" the GPU at install time it sets an option that you will need to change. In FAHControl use Configure and click on the Expert tab. If the option gpu is there and set to false, remove it and set the option gpu and set that to true. Save the changes and restart the FAHClient process or reboot.
I'm having issues getting FAHControl to run. It installs, in some fashion, appearing in my app menu, but "running" the entry doesn't seem to do anything.

Code: Select all

§ sudo dpkg -i --force-depends fahcontrol_7.5.1-1_all.deb 
Selecting previously unselected package fahcontrol.
(Reading database ... 429662 files and directories currently installed.)
Preparing to unpack fahcontrol_7.5.1-1_all.deb ...
Unpacking fahcontrol (7.5.1-1) ...
dpkg: fahcontrol: dependency problems, but configuring anyway as you requested:
 fahcontrol depends on python-gnome2; however:
  Package python-gnome2 is not installed.
 fahcontrol depends on python-support | dh-python; however:
  Package python-support is not installed.
  Package dh-python is not installed.

Setting up fahcontrol (7.5.1-1) ...
Processing triggers for gnome-menus (3.32.0-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu1) ...
Processing triggers for mime-support (3.63ubuntu1) ...
Must I manually install python-gnome2, python-dh and python-support?

Ran

Code: Select all

§ sudo dpkg -i --force-all ~/Downloads/fahcontrol_7.5.1-1_all.deb
with the same result.
Joe_H
Site Admin
Posts: 7856
Joined: Tue Apr 21, 2009 4:41 pm
Hardware configuration: Mac Pro 2.8 quad 12 GB smp4
MacBook Pro 2.9 i7 8 GB smp2
Location: W. MA

Re: New GPU: AMD M370X (Macbook Pro 15" mid-2015, running Li

Post by Joe_H »

I remember a post from someone where they changed a line at the beginning of FAHControl to point to python instead of python2 and that getting it to work with the current installed version. I don't recall if there were other issues connected with that, but perhaps this will give you something to look for.

As for the proprietary drivers, the experience has been that the GPU folding core has not worked with the open source drivers. I have not seen any info that situation has changed.
Image

iMac 2.8 i7 12 GB smp8, Mac Pro 2.8 quad 12 GB smp6
MacBook Pro 2.9 i7 8 GB smp3
Carrot
Posts: 5
Joined: Sat Mar 21, 2020 9:26 am

Re: New GPU: AMD M370X (Macbook Pro 15" mid-2015, running Li

Post by Carrot »

I was able to get my GPU working (or at least show up in F@H webview) on my mid-2015 Macbook Pro 15" doing the following:

Code: Select all

sudo nano /etc/fahclient/config.xml
Line 6: Changed from

Code: Select all

<gpu v='false'/>
to

Code: Select all

<gpu v='true'/>
Line 18: Added

Code: Select all

<slot id='1' type='GPU'/>

Code: Select all

01  <config>
02   <!-- Client Control -->
03   <fold-anon v='true'/>
04
05   <!-- Folding Slot Configuration -->
06   <gpu v='true'/>
07
08   <!-- Slot Control -->
09   <power v='MEDIUM'/>
10
11   <!-- User Information -->
12   <passkey v='KEY'/>
13   <team v='TEAM'/>
14   <user v='USER'/>
15
16   <!-- Folding Slots -->
17   <slot id='0' type='CPU'/>
18   <slot id='1' type='GPU'/>
19 </config>
Credit to this post on GamingOnLinux for having me try it.
Last edited by Carrot on Sun Mar 29, 2020 2:34 pm, edited 1 time in total.
Carrot
Posts: 5
Joined: Sat Mar 21, 2020 9:26 am

Re: New GPU: AMD M370X (Macbook Pro 15" mid-2015, running Li

Post by Carrot »

FAHControl can be installed with this .deb, which has stripped out the faulty dependencies.

Credit to this post on GamingOnLinux for providing the link.
Post Reply