Lc0 with Radeon graphics

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

Eduard
Posts: 1439
Joined: Sat Oct 27, 2018 12:58 am
Location: Germany
Full name: N.N.

Lc0 with Radeon graphics

Post by Eduard »

I bought a laptop with an AMD Ryzen 7 5700U. Does anyone know which Lc0 version you should install for it? Probably the DX12, or another one?

The GPU is Radeon RX Vega 8. Which nps should the engine achieve with it?
bastiball
Posts: 5367
Joined: Tue Oct 20, 2020 4:18 am
Full name: Basti Dangca

Re: Lc0 with Radeon graphics

Post by bastiball »

Eduard wrote: Wed Oct 20, 2021 2:06 pm I bought a laptop with an AMD Ryzen 7 5700U. Does anyone know which Lc0 version you should install for it? Probably the DX12, or another one?

The GPU is Radeon RX Vega 8. Which nps should the engine achieve with it?
DX12
Basti Dangca
CCRL testing group
User avatar
yurikvelo
Posts: 710
Joined: Sat Dec 06, 2014 1:53 pm

Re: Lc0 with Radeon graphics

Post by yurikvelo »

Ryzen 3400G (Vega 11, TDP=65W), OpenCL, 2xDDR4-3200
11 * 64 = 704 unified shaders @ 1400 MHz

128x10 = 2476 nps @ startpos go depth 14
256x20 = 373 nps @ startpos go depth 12


for comparison, GTX1650, CUDA

128x10 = 22122 nps @ startpos go depth 14
256x20 = 4486 nps @ startpos go depth 14
320x24 = 3095 nps @ startpos go depth 12

5700U has 8*56 = 448 unified shaders @ 1900 MHz
If extrapolate just number of shaders and clock, it is 86% or Ryzen 3400G

1400 MHz and 1900 MHz are top frequencies, when there is small load on CPU cores.
CPU+GPU both share the same TDP, if you load CPU, GPU will have less TDP allowance and decrease operating frequency
Eduard
Posts: 1439
Joined: Sat Oct 27, 2018 12:58 am
Location: Germany
Full name: N.N.

Re: Lc0 with Radeon graphics

Post by Eduard »

Thanks! Interesting. Is OpenCL as fast as DX12?

I only have one GTX 1050 Ti in the PC, so I wanted to buy the RTX 3070 for the PC, but the prices are too high for me. That's why I first bought a second PC as a laptop so that I could play with Stockfish on the go. On my GTX 1050 Ti, Lc0 with net 256x20 makes about 2000 nps.
User avatar
yurikvelo
Posts: 710
Joined: Sat Dec 06, 2014 1:53 pm

Re: Lc0 with Radeon graphics

Post by yurikvelo »

Ryzen 3400G, Windows 11, LC 0.28.0, startpos go depth 10

752187.pb.gz (192x15)
OpenCL: 1184 nps
DX12: 3203 nps

703810.pb.gz (128x10)
OpenCL: 2333 nps
DX12: 8793 nps

weights_run1_610276.pb.gz (384x30)
DX12: 399 nps

42850.pb.gz (256x20)
go depth 24
DX12: 1668 nps

This 256x20 network behaves completely different, it reach big D very fast and nps numbers are not similar to older version.
I'm not sure we can compare it to your 2000 nps
Also nps numbers increase with D very fast, not comparable numbers if not agree on D
Eduard
Posts: 1439
Joined: Sat Oct 27, 2018 12:58 am
Location: Germany
Full name: N.N.

Re: Lc0 with Radeon graphics

Post by Eduard »

I have installed Lc0 v0.28 DX12 with net 42850 (256x20) on Ryzen 7 5700U.

After 60s, Startposition:
Image