logoalt Hacker News

TornadoVM 7 Enables GPU-Native Workloads from Java Applications

81 points • by pjmlp • last Thursday at 9:01 AM • 14 comments • view on HN

Comments

zmmmmm • today at 9:39 PM

Seems like a nice win even if it just does the example they have:

    void matmul(Matrix2DFloat A, Matrix2DFloat B, Matrix2DFloat C, int size) {
      for (@Parallel int i=0; i<size; i++) {
        for (@Parallel int j=0; j<size; j++) {
          float sum = 0f;
          for (int k=0; k<size; k++)
            sum += A.get(i,k)*B.get(k,j);
          C.set(i, j, sum);
        }
      }
    }
But the elephant in the room is the Vector API. Is that going to end up like logging - a standardised API nobody uses because it came 10 years late to the party and isn't as good as what was already established?

And why confuse everybody by calling it a VM when it ships as a JAR file that runs in an existing VM?

mikepapadim • today at 3:16 PM

https://github.com/beehive-lab/TornadoVM this is main repo.

You can use it with any JDK21+ and Nvidia or Apple hardware and their Nvidia libs or MLX libs.

➕ show 1 reply
the_arun • today at 3:18 PM

Does this mean we can use Java to build AI infrastructure?

➕ show 2 replies
amir734jj • today at 3:30 PM

Basically JAX for Java instead of Python

➕ show 1 reply
karolosLykos • today at 3:52 PM

[dead]

mathisfun123 • today at 6:48 PM

"your scientists were so preoccupied with whether they could they didn't stop to think if they should"