News for hackers. Stuff that matters.
Re:I want a good parallel computer by Grosvenor on Friday March 21, 2025 @07:21PM (#43441758)
What I want is a Linear Algebra interface - As Gilbert Strang taught it. I'll "program" in LinAlg, and a JIT can compile it to whatever wonky way your HW requires.

I'm not willing to even know about the HW at all, the higher level my code the more opportunities for the JIT to optimize my code.

What I really want is something like Mathematica that can JIT to GPU.

As another commenter mentioned all the API's assume you're a discrete GPU off the end of a slow bus, without shared memory. I would kill for an APU that could freely allocate memory for GPU or CPU and change ownership with the speed of a pagefault or kernel transition.

Re:I want a good parallel computer by RossBencina on Friday March 21, 2025 @08:08PM (#43442045)
> What I really want is something like Mathematica that can JIT to GPU.

https://juliagpu.org/

Re:I want a good parallel computer by vgatherps on Friday March 21, 2025 @08:30PM (#43442179)
Re:I want a good parallel computer by creata on Saturday March 22, 2025 @10:54AM (#43446084)
To expand on this link, this is probably the closest you're going to get to 'I'll "program" in LinAlg, and a JIT can compile it to whatever wonky way your HW requires.' right now. JAX implements a good portion of the Numpy interface - which is the most common interface for linear algebra-heavy code in Python - so you can often just write Numpy code, but with `jax.numpy` instead of `numpy`, then wrap it in a `jax.jit` to have it run on the GPU.
Re:I want a good parallel computer by imtringued on Saturday March 22, 2025 @12:59PM (#43447081)
I was about to say that it is literally just Jax.

It genuinely deserves to exist alongside pytorch. It's not just Google's latest framework that you're forced to use to target TPUs.

Re:I want a good parallel computer by tipsytoad on Saturday March 22, 2025 @10:17AM (#43445758)
Like, PyTorch? And the new Mac minis have 512gb of unified memory