logoalt Hacker News

TornadoVM 7 Enables GPU-Native Workloads from Java Applications

90 points • by pjmlp • last Thursday at 9:01 AM • 19 comments • view on HN

Comments

mikepapadim • yesterday 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
zmmmmm • yesterday 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?

➕ show 2 replies
the_arun • yesterday at 3:18 PM

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

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

Basically JAX for Java instead of Python

➕ show 1 reply
mathisfun123 • yesterday at 6:48 PM

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

karolosLykos • yesterday at 3:52 PM

[dead]