#
#asahi-gpu · 2021-05-24 11:44
yrlf(then again: I have no GPU experience, that is all transferred knowledge from regular CPU asm stuff)
#asahi-gpu · 2021-05-24 11:44
yrlfare there any situations where a `while (x) { ... }` loop would be beneficial in asm? I currently don't see a reason to generate one, ever, and I have the feeling I'm overlooking something here
#asahi-gpu · 2021-05-24 11:41
yrlfthen you can just do a conditional branch to the top instead of doing an unconditional one to the top and having the conditional branch there
#asahi-gpu · 2021-05-24 11:40
yrlfbloom: yeah, checking the condition on the tail end of the loop saves you one branch in most instruction sets
#asahi-gpu · 2021-05-24 02:49
bloomheh
#asahi-gpu · 2021-05-24 02:46
dougallooh, conditional execution time - exciting!
#asahi-gpu · 2021-05-24 02:31
bloomstudies dougall 's notes
#asahi-gpu · 2021-05-24 01:48
bloomfor at least 2 iterations you come out ahead with the Apple idiom
#asahi-gpu · 2021-05-24 01:48
bloomactually the dummy while_fcmp isn't needed but the point still stands
#asahi-gpu · 2021-05-23 23:59
TellowKrinkle[m]< https://matrix.org/_matrix/media/r0/download/matrix.org/EvYJWCUudEFDqtQZzNulmhjc/message.txt >
#asahi-gpu · 2021-05-23 23:50
bloomso for a single iteration they're the same, for 2 or more the Metal one is faster
#asahi-gpu · 2021-05-23 23:50
bloomwhereas the Metal way, despite adding 2 instructions _outside_ the loop, has a body only of "..., while_fcmp, jmp_exec_any"
#asahi-gpu · 2021-05-23 23:50
bloomthe literal NIR way has a body of "if_fcmp, break, pop_exec, ..., while_fcmp, jmp_exec_any"
#asahi-gpu · 2021-05-23 23:49
bloomwhy? the loop body is much smaller
#asahi-gpu · 2021-05-23 23:49
bloomthe number of instructions is the same between the two -- HOWEVER, the Metal translation should be faster
#asahi-gpu · 2021-05-23 23:48
bloomwhich is the natural translation from the NIR `loop { if (!x) { break } .. }`
#asahi-gpu · 2021-05-23 23:48
bloomof course, it could also become "do { if (!x) { break } ... } while(true)"
#asahi-gpu · 2021-05-23 23:44
bloomwhich means "while(x) { .. }" becomes "if (x) { do { ... } while (x) }"
#asahi-gpu · 2021-05-23 23:43
bloomI guess the primitive is "do { ... } while(x)" as opposed to plain while
#asahi-gpu · 2021-05-23 23:29
bloomI admit I'm confused by the idioms the Metal compiler uses for loops
#asahi-gpu · 2021-05-23 15:50
bloom:D
#asahi-gpu · 2021-05-23 15:47
marcanaw, and you'd gotten me excited :p
#asahi-gpu · 2021-05-23 15:46
bloomfinish your hypervisor, start the DRM driver, see what I care ;-p
#asahi-gpu · 2021-05-23 15:46
bloomI'm kinda over it
#asahi-gpu · 2021-05-23 15:46
marcanI'm definitely going back to the hypervisor tomorrow, better hope I don't finish that too soon or else I'll start working on the drm drver :p
#asahi-gpu · 2021-05-23 15:46
bloomand tomorrow might be a stat holiday so I might even get something done
#asahi-gpu · 2021-05-23 15:45
marcan^_^
#asahi-gpu · 2021-05-23 15:45
bloomwell, no excuse not to AGX today then!
#asahi-gpu · 2021-05-23 15:45
bloommarcan: thank you uwu :p
#asahi-gpu · 2021-05-23 15:44
marcanbloom: done, rejoin should autoop
#asahi-gpu · 2021-05-23 15:39
bloommarcan: can i haz op? :-p
#asahi-gpu · 2021-05-23 15:39
TheLink\o/
#asahi-gpu · 2021-05-23 15:38
bloomHello hello :)
#asahi-gpu · 2021-05-21 20:24
yrlfoh, I noticed bloom did not make the jump to OFTC yet -- or uses a different name here
#asahi-gpu · 2021-05-21 20:22
lainheh
#asahi-gpu · 2021-05-21 19:43
kuanyui__/!\ THE JEWS HAVE TAKEN OVER FREENODE, CHATS HAVE MOVED TO IRC.LIBERA.CHAT /!\
#asahi-gpu · 2021-05-21 19:43
kuanyui__/!\ IRC.LIBERA.CHAT IS THE BEST IRC NETWORK /!\
#asahi-gpu · 2021-05-21 19:43
kuanyui__/!\ THIS CHANNEL HAS MOVED TO IRC.LIBERA.CHAT #LIBERIA /!\
#asahi-gpu · 2021-05-21 19:42
Patsie/!\ THE JEWS HAVE TAKEN OVER FREENODE, CHATS HAVE MOVED TO IRC.LIBERA.CHAT /!\
#asahi-gpu · 2021-05-21 19:42
Patsie/!\ IRC.LIBERA.CHAT IS THE BEST IRC NETWORK /!\
#asahi-gpu · 2021-05-21 19:42
Patsie/!\ THIS CHANNEL HAS MOVED TO IRC.LIBERA.CHAT #LIBERIA /!\
#asahi-gpu · 2021-05-20 03:28
marcanWelcome to Asahi Linux's new home on OFTC! Logs from Freenode up until 2021-05-19 have been backfilled into the OFTC log interface, to avoid a discontinuity and split search.
#asahi-gpu · 2021-05-12 19:53
bloomAh
#asahi-gpu · 2021-05-12 19:13
dottedmagar: there's log(1) for that
#asahi-gpu · 2021-05-12 19:11
dottedmagConsole chiefly displays whatever was posted by os_log(3) -- and I have no idea how is it different from syslog(3) -- and these messages end up in /var/db/diagnostics. Probably through logd or syslogd
#asahi-gpu · 2021-05-12 19:06
dottedmagbloom: dmesg shows up in Console as "pid 0 messages", but non-kernel messages aren't posted to dmesg.
#asahi-gpu · 2021-05-12 18:07
arand dmesg on macos not having -w and -T flags, so it cannot automatically follow new entries, and timestamps aren't human-friendly
#asahi-gpu · 2021-05-12 18:06
arexcept for dmesg being non-gui
#asahi-gpu · 2021-05-12 18:06
arlooks about the same
#asahi-gpu · 2021-05-12 17:57
bloom is macOS dmesg distinct from Console.app?

plus ›