Live data from Hacker News

GrCUDA: A Polyglot Language Binding for CUDA in GraalVM

devblogs.nvidia.com

1–10 of 30 posts

Re: GrCUDA: A Polyglot Language Binding for CUDA in GraalVM

#3

Why should one use this vs. using C/C++ bindings for CUDA and load them in other languages (if required)? I believe it underperforms in comparison with raw C or C++ implementation, just because of the overhead that goes through GraalVM

Can GrCUDA give you a good testing / CI story? IIRC if you want to test you code on a GPU-less server, the other option is GPUOcelot, which is (also) 3rd party and no longer maintained.

EDIT: or you can install CUDA from 2009 before they stripped out the software emulator and use no features from the last decade, but then you might as well just use OpenCL :)

Re: GrCUDA: A Polyglot Language Binding for CUDA in GraalVM

#4

Why should one use this vs. using C/C++ bindings for CUDA and load them in other languages (if required)? I believe it underperforms in comparison with raw C or C++ implementation, just because of the overhead that goes through GraalVM

Guess it would be easier to build a library using Cuda in Java + JS + Ruby + Python + Rust at the same time, as that's kind of what GraalVM would help a lot with. Basically, anything polyglot + Cuda would be easier with this.

Re: GrCUDA: A Polyglot Language Binding for CUDA in GraalVM

#5

Why should one use this vs. using C/C++ bindings for CUDA and load them in other languages (if required)? I believe it underperforms in comparison with raw C or C++ implementation, just because of the overhead that goes through GraalVM

Because it is more productive and safer, instead of forcing everyone to learn C and C++.

A lesson that Khronos learnt too late regarding OpenCL.

Re: GrCUDA: A Polyglot Language Binding for CUDA in GraalVM

#6

Why should one use this vs. using C/C++ bindings for CUDA and load them in other languages (if required)? I believe it underperforms in comparison with raw C or C++ implementation, just because of the overhead that goes through GraalVM

This is an O(1) solution (one integration works for all languages). You're proposing an O(n) solution (binding into individual languages.) That's why.
Post reply on HN