uncomplicate

Joe R. Smith 2024-11-09T15:55:15.792189Z

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?

octahedrion 2024-11-11T08:16:01.276889Z

I really really want this too! Can I donate to help progress ?

quoll 2024-11-11T08:20:18.877159Z

Sure! I’ll dm you

2024-11-11T13:11:51.958259Z

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.

quoll 2024-11-11T13:14:54.775769Z

I did see this! I should show you my code so far, in case it’s of use for you

2024-11-11T13:16:16.262199Z

Thanks. Naturally, all help is appreciated. Fingers crossed!

2024-11-11T13:18:53.724989Z

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.

quoll 2024-11-11T13:24:12.060649Z

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

❤️ 1
quoll 2024-11-11T17:58:51.775389Z

Sorry to take so long…

quoll 2024-11-11T17:59:28.443659Z

The project I've started tries to port the Neanderthal CUDA code into Metal, and then uses a C++ wrapper to do the dispatch.

quoll 2024-11-11T18:00:02.370479Z

I've been a bit overloaded in recent weeks, so there are still a few TODO items, however, the basics are there

quoll 2024-11-11T18:00:04.614649Z

https://github.com/quoll/Ferrum

1
quoll 2024-11-11T18:00:59.277799Z

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.

quoll 2024-11-11T18:02:26.577789Z

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.

quoll 2024-11-10T11:26:16.806859Z

Unfortunately, no. Not yet.

quoll 2024-11-10T11:56:16.449389Z

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

👍 1
❤️ 2
2025-05-22T11:27:30.306039Z

@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.

❤️ 1
🙌 2
Joe R. Smith 2025-05-22T11:38:54.346339Z

Amazing, I'll try it today!

Joe R. Smith 2025-05-22T11:57:42.842329Z

what are the repo coordinates for the latest snapshots?

Joe R. Smith 2025-05-22T15:23:35.577119Z

nevermind, found them in examples

Joe R. Smith 2025-05-22T15:30:16.840629Z

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)

2025-05-22T15:48:37.287319Z

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

👍 1
2025-05-22T15:50:09.245619Z

https://clojars.org/org.uncomplicate/accelerate-platform is in clojars, I think this is the latest snapshot...

👍 1
2025-05-22T15:51:53.787439Z

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.

Joe R. Smith 2025-05-22T15:52:30.905199Z

working my way through compiling, hit this, which feels like a Java 9+ modules issue: java.lang.ClassNotFoundException: java/sql/Timestamp

Joe R. Smith 2025-05-22T16:07:26.462359Z

for 0.53.0, is the only dep I need uncomplicate/neanderthal 0.53.0 ?

2025-05-22T16:59:47.662429Z

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.

👍 1
2025-05-22T17:01:07.160969Z

regarding the CNF exception, this is certainly not directly related to neanderthal, since it does not touch anything sql related

Joe R. Smith 2025-05-22T17:01:45.888229Z

hmm

2025-05-22T17:36:41.713769Z

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)