News for hackers. Stuff that matters.
Re:Using mmap to make LLaMA load faster by saagarjha on Wednesday April 05, 2023 @02:31PM (#35458516)
> Darwin kernel does though.

It does not. Compare the implementation of _bcopyout against _platform_memmove, you'll see the difference :)

Re:Using mmap to make LLaMA load faster by astrange on Wednesday April 05, 2023 @03:00PM (#35458905)
Huh, maybe I was thinking of "you can use floating point in the kernel".

That doesn't work in every kernel because they don't want to bother saving/restoring the extra registers.

Re:Using mmap to make LLaMA load faster by saagarjha on Thursday April 06, 2023 @04:29AM (#35465775)
To be entirely honest I'm not sure why the kernel doesn't use better routines here, I think on ARM at least it saves the entire NEON state on context switch…