3

I am using CUDAC all these days to access the GPU. But now my guide asked me to work with Java and GPU. So I searched in Internet and found Rootbeer is the best option for it but I am not able to understand how to run a program using 'Rootbeer'. Can some one tell me steps for using Rootbeer.

Aadya
  • 75
  • 10
  • possible duplicate of [Using Java with Nvidia GPU's (cuda)](http://stackoverflow.com/questions/22866901/using-java-with-nvidia-gpus-cuda) – MichaelS Nov 27 '14 at 08:14
  • He gave examples of programs but not clear steps of executing. That means what jars I have to download and where I to keep them and so on....what is procedure to execute the program – Aadya Nov 27 '14 at 08:23
  • Shameless self-promotion: You should *definitely* have a look at my answer to the question http://stackoverflow.com/questions/22866901/using-java-with-nvidia-gpus-cuda that was mentioned by MichaelS. Although rootbeer is an "interesting" approach, you should consider the alternatives, depending on what you want to achieve. Rootbeer tries to move Java Code to the GPU in a very broad sense. If you just want to launch some CUDA kernels, rootbeer may be an overkill. (And the *general* challenges, difficulties and caveats of GPU programming are summarized in the answer mentioned above) – Marco13 Nov 28 '14 at 09:17
  • So what do you want to say?? – Aadya Nov 28 '14 at 09:42

1 Answers1

3

Mark Harris from Nvidia gave nice talk about the future of CUDA at SC14. You can watch it here.

The main thing that may be of interest for you is the part where he talks about programming languages and especially Java. IBM is working on CUDA4J and there are some nice plans about Java 8 features especially lambdas to be used for GPU programming. However, I am not a Java user and I can't answer your question regarding Rootbeer (besides the taste) but maybe CUDA4J will be something that suits you. Especially, if you know how to write CUDA C and need a solution backed up by a company like IBM.

Michael Haidl
  • 5,384
  • 25
  • 43
  • Thanks for the answer. I read about and it is something I am searching for. I am not able to 'Vote up' because of my 'less reputation'. – Aadya Nov 28 '14 at 03:09
  • how can I use this. Does I need to download IBM Java or just some package from IBM and use it in SUN Java??? Please tell me..@Michael – Pawan Nov 28 '14 at 04:12
  • @Saipavan579 as I said, I am not a Java programmer. However, it looks like CUDA4J is part of IBM® SDK, Java™ Technology Edition, Version 7 Release 1 so I assume that you have to download this SDK. I can't tell if it works with Sun Java. Please try and report back. Maybe this would be helpful for others as well. – Michael Haidl Nov 28 '14 at 05:54
  • @MichaelHaidl I think we need an POWER PC(A PC with An old microprocessor instruction set architecture designed by IBM) is the only machine that supports CUDA4J. – Aadya Nov 28 '14 at 16:13
  • @Aadya thats to bad. CUDA4J looks nice for Java – Michael Haidl Nov 29 '14 at 12:39
  • But I am not able to install it in my PC. – Aadya Nov 29 '14 at 14:35