3 ms·
This is really interesting: CUDA support out of the box[1]. I've never seen this before, does any other JVM do it? [1] https://github.com/eclipse/openj9/tree/m
by dvt 9y ago
This is really interesting: CUDA support out of the box[1]. I've never seen this before, does any other JVM do it?
[1] https://github.com/eclipse/openj9/tree/master/runtime/cuda https://github.com/eclipse/openj9/tree/master/runtime/cuda
- dragandj 9y agoAll of them do with 3-rd party libraries like JCuda. Bundling that into JVM is even a disservice to the user, because it is much more difficult to keep up to the newest CUDA features.
- agibsonccc 9y agoWe've actually implemented something like this ourselves with our linear algebra library. We wrote our own gc for cuda: https://github.com/deeplearning4j/nd4j/tree/master/nd4j-backends/nd4j-backend-impls/nd4j-cuda/src/main/java/org/nd4j/jita https://github.com/deeplearning4j/nd4j/tree/master/nd4j-back... as well as: https://deeplearning4j.org/workspaces https://deeplearning4j.org/workspaces It also integrates with the JVM via weak references as well. I can attest to: https://news.ycombinator.com/item?id=15269537 https://news.ycombinator.com/item?id=15269537 as well, you really need this 3rd party due to the frequency of how often cuda changes. We usually end up having to support the 2 most recent cuda versions.
- dvt 9y agoVery cool, thanks for the reference!