Is there any way to run Eclipse through my GPU for faster results because my processor is too slow
-
1I don't think Java comes with support for your GPU's architecture. – Makoto Jul 15 '14 at 05:51
-
i have Nvidia Geforce 210.Can i use CUDA for java programming? i am new to java.have been usiing eclipse. – Akashd7 Jul 15 '14 at 05:55
-
CUDA programs are written in a specialized dialect of C or C++, not Java. – Wyzard Jul 15 '14 at 06:01
2 Answers
A GPU is not a general-purpose processor and cannot run programs written in general-purpose languages like Java. You can run programs on a GPU using OpenCL or CUDA, but they have to be written in a specialized language that's designed for the sort of parallel-computation environment that a GPU provides.
Also, GPUs don't just magically make things faster. An individual thread on a GPU runs much slower than it would on a typical CPU; the difference is that a GPU can run hundreds or thousands of threads simultaneously, instead of the four or so that a CPU can handle. This design works well for embarrassingly-parallel tasks that can actually be divided up into hundreds or thousands of concurrent threads, but many algorithms can't be parallelized like that, and thus wouldn't benefit from running on a GPU.

- 33,849
- 3
- 67
- 87
Can i use CUDA for java programming?
Yes you can use your GPU, not to run your whole Java program but you can speed up your graphics. I suggest trying OpenCL or OpenCV, but the easiest to use might be lwjgl which is what Minecraft uses. To get started I suggest looking at jMonkeyEngine which is easier to start with.
i have Nvidia Geforce 210
I don't think you can buy a model that slow any more, I don't think it's going to help you much.
It's a 16 core 1.4 GHz processor. Unless you are doing graphics work, your "slow" CPU is likely to be faster.
NOTE; Most development machines run slowly because they don't have enough
- memory
- disk performance.
Just adding more memory and a cheap SSD might make all the difference you need.

- 525,659
- 79
- 751
- 1,130
-
1LWJGL doesn't let you run Java on a GPU, it just lets Java programs submit work to a GPU. You still have to write the OpenGL shaders, OpenCL kernels, etc. in their respective specialized languages. – Wyzard Jul 15 '14 at 06:19
-