0

Is there any way to run Eclipse through my GPU for faster results because my processor is too slow

Akashd7
  • 21
  • 1
  • 5

2 Answers2

5

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.

Wyzard
  • 33,849
  • 3
  • 67
  • 87
1

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.

Peter Lawrey
  • 525,659
  • 79
  • 751
  • 1,130
  • 1
    LWJGL 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
  • @Wyzard Agree, I suspect the OP's problem is not CPU anyway. – Peter Lawrey Jul 15 '14 at 06:20