neanderthal icon indicating copy to clipboard operation
neanderthal copied to clipboard

OSX Silicon Support

Open eoliphan opened this issue 2 years ago • 4 comments

Would be nice to have "native" support on next-gen macs. Looks like the Accelerate library provides BLAS and LAPACK

eoliphan avatar Apr 11 '22 12:04 eoliphan

Yes.I intend to do something about this eventually. I'll see what I can do once I get hold of the appropriate hardware. However, I use lots of native functions that are not available in BLAS and LAPACK. That means that i won't be able to support full functionality.

blueberry avatar Apr 11 '22 12:04 blueberry

It'd be nice if there was some generic (either pure Clojure or JVM) fallback. The current backend is obviously as close to optimal as possible in terms of speed - but it's a pain to distribute/bundle. I often work with non-huge matrices and I don't really need to squeeze everything I can out of every CPU cycle - and I end up having to fall back onto core.matrix ... which is really kinda buggy and not as polished as neanderthal

I get this might not be on your radar though since I think you're using this for ML :)

kxygk avatar Apr 13 '22 12:04 kxygk

@blueberry Would it be helpful if you had access to an m1 instance in the cloud? If yes I could have my company sponsor the instanse.

mbjarland avatar May 03 '23 16:05 mbjarland

It's difficult to say. If it was just a matter of recompiling, then yes. But for OSX support, I would have to develop an independent engine from scratch, with Apple's proprietary BLAS/LAPACK. I'd have to familiarize myself with their ecosystem to be able to do that. Thank you for the offer, though. This might be an option if I don't find a better solution.

blueberry avatar May 03 '23 20:05 blueberry