Hello! I'm very new to using Neanderthal and I'm sure this question has come up many times, but is there a way to use it on Apple Silicon (macosx-arm64) or work to support it?
I really really want this too! Can I donate to help progress ?
Sure! I’ll dm you
I've sent an application for Clojurists Together long-term funding for 2025, which is centered on my work on Apple Sillicon support in Neanderthal. If you are a CT member, you can vote for my application and increase the chance that I work on that in the next cycle.
I did see this! I should show you my code so far, in case it’s of use for you
Thanks. Naturally, all help is appreciated. Fingers crossed!
Also, if you know of other Clojurists Together members who are interested in this functionality, please spread the word so that they are aware of it when voting.
I’ll message you in a few hours to explain what I have. Of course, you’re free to take whatever you may want to use
Sorry to take so long…
The project I've started tries to port the Neanderthal CUDA code into Metal, and then uses a C++ wrapper to do the dispatch.
I've been a bit overloaded in recent weeks, so there are still a few TODO items, however, the basics are there
I've tried to explain the structure of it all in the README. I'm hopeful that you can read that and understand each part of what I've done.
I will be trying to get back to it in a few weeks (I'm in a postgrad program at the moment, and it's taking all my spare time), but please feel free to use any part of it, or offer suggestions on how I can do it better.
Unfortunately, no. Not yet.
I’ve started on one, but have some other priorities just at the moment. I hope to return to it soon, because I really want them
@solussd It's been some time, but since april, you can use Neanderthal on Apple silicon (CPU). The latest snapshots even provide full coverage using Apple's Accelerate. Apple's GPU will be supported later this year via Metal.
Amazing, I'll try it today!
what are the repo coordinates for the latest snapshots?
nevermind, found them in examples
Actually, can't resolve that artifact: Could not find artifact org.uncomplicate:neanderthal-apple:jar:0.54.0-SNAPSHOT in central (https://repo1.maven.org/maven2)
You need to build respictive uncomplicate snapshot libraries locally. They are not in Clojars yet. Please clone them from Github, and build using lein install
https://clojars.org/org.uncomplicate/accelerate-platform is in clojars, I think this is the latest snapshot...
If you find this too cumbersome, you can use Neanderthal 0.53.0, which works on Apple silicon, but only supports core and linalg functions. No support for vect-math.
working my way through compiling, hit this, which feels like a Java 9+ modules issue:
java.lang.ClassNotFoundException: java/sql/Timestamp
for 0.53.0, is the only dep I need uncomplicate/neanderthal 0.53.0 ?
Yes. Don't forget to add sonatype snapshots repository, as it uses the newest version of javacpp-presets that is pinned to a recent snapshot version.
regarding the CNF exception, this is certainly not directly related to neanderthal, since it does not touch anything sql related
hmm
please check the /examples dir in github. There's a lein hello world (you'll just need to see earlier commits to find the version appropriate for 0.53.0)