2021-04-17
00:12DarkShadow44 has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
00:13DarkShadow44 has joined #asahi-gpu
00:40odmir has quit [Remote host closed the connection]
00:41odmir has joined #asahi-gpu
00:45odmir has quit [Ping timeout: 240 seconds]
01:12odmir has joined #asahi-gpu
01:20Emantor has quit [Quit: ZNC - http://znc.in]
01:22Emantor has joined #asahi-gpu
01:30odmir has quit [Remote host closed the connection]
01:30odmir has joined #asahi-gpu
01:48bloomThe cmdstream just specifies register count/4, but that seems more fine grained than real hw would implement
01:48bloomSo it ought to be able to figure out from the other direction like you've done with the cpu?
02:04dougallhmm... yeah, i've been wanting to get at those counters, but i'm not quite sure how to approach it
02:07dougalli think a granularity of four is possibly correct... register granularity is observable by using out-of-range register ids. occupancy would be 'floor(total / round_up(register_count))' right?
02:34Necrosporus has quit [Ping timeout: 252 seconds]
02:37robinp has quit [Read error: Connection reset by peer]
02:38robinp has joined #asahi-gpu
02:41odmir has quit [Remote host closed the connection]
02:47Necrosporus has joined #asahi-gpu
02:50phiologe has quit [Ping timeout: 250 seconds]
02:50phiologe has joined #asahi-gpu
03:03blooma bit of a hunch looking at a funny shader I compiled -- looks like integer ALU issues 2 insructions at once, maybe?
03:16dougall"Implemented as x * rsqrt(x) with special cases handled correctly" - so i guess how does sqrt(x) differ from x * rsqrt(x)?
03:41The_DarkFire_[m] has joined #asahi-gpu
03:50bloomIf Q >= 14, you have less. I was about to say I had the formula but my formula is buggy, hang on
03:58bloomdougall: https://github.com/AsahiLinux/gpu/commit/f6dba34f41d957820ae880ffdf8fce8e42b1ecd1
04:14bloom{13: 1024, 14: 896, 15: 832, 16: 832, 17: 768, 18: 704, 19: 640, 20: 640, 21: 576, 22: 576, 23: 576, 24: 512, 25: 512, 26: 512, 27: 448, 28: 448, 29: 448, 30: 384, 31: 384}
04:25mxw39 has quit [Ping timeout: 240 seconds]
04:25mxw39 has joined #asahi-gpu
04:29method_ has joined #asahi-gpu
04:43bloom"total, the M1 GPU contains up to 128 EUs and 1024 ALUs,[12] which by Apple's claim can execute nearly 25,000 threads simultaneously"
04:44bloomwhich means scaling our estimated size up by 24x to 212992 * 24 = 5111808 = 4.9 MB of register file on the M1 GPU!
04:50dougallyeah... that number is right, but i'm a bit confused where the 24x comes from? like is the register file per-core? (i assume so, and that'd an 8x, but then where's the 3x?)
04:53dougallyeah, i'm quite confused... "128 execution units", so 16 per core? when a simd-group is 32? is that like AMDs thing where you just put each half through the pipeline over two cycles?
04:56dougallyeah, i'm sure it'll make more sense as we figure more out, but definitely plenty of puzzles left :)
07:51vlixa has quit [Remote host closed the connection]
09:51vlixa has joined #asahi-gpu
12:28odmir has joined #asahi-gpu
15:32bloomIf two 16-bit values are in a packed register (r0l/r0h say) can we use bitop_mov on the 32-bit register (r0) for vectorization?
16:00morelightning[m] has quit [Quit: Idle for 30+ days]
16:58artemist has joined #asahi-gpu
17:24odmir has quit [Remote host closed the connection]
17:25odmir has joined #asahi-gpu
17:30odmir has quit [Ping timeout: 240 seconds]
17:50odmir has joined #asahi-gpu
18:21m42uko has quit [Quit: Leaving.]
18:21m42uko has joined #asahi-gpu
19:50odmir has quit [Remote host closed the connection]
19:51odmir has joined #asahi-gpu
19:55odmir has quit [Ping timeout: 240 seconds]
20:25odmir has joined #asahi-gpu
20:55odmir has quit [Ping timeout: 240 seconds]
21:09odmir has joined #asahi-gpu
21:10vlixa has quit [Remote host closed the connection]
21:41vlixa has joined #asahi-gpu
21:43odmir has quit [Ping timeout: 268 seconds]
21:55odmir has joined #asahi-gpu
22:04odmir has quit [Remote host closed the connection]
22:05odmir has joined #asahi-gpu
22:34vlixa has quit [Remote host closed the connection]
22:38vlixa has joined #asahi-gpu