r/CUDA • • Mar 17 '21

Installed graphics card but program doesn't run faster.

Hey,

My friend is working on a R program that imports and deals with a massive dataset. It takes hours for the program to process the data. She was told it would be useful to get a graphics card. So she installed a GeForce RTX 2070 SUPER on a PC running an i9 with 128gb of ram, so a pretty powerful machine.

She noticed that when she runs the program, in task manager, the GPU usage doesn't increase. She thought just installing the graphics card would improve the performance.

What are we missing? She uses R-Studio, is there a setting there to enable using the graphics card

0 Upvotes

6 comments sorted by

3

u/geekboy730 Mar 18 '21

Typically, it is not possible to run the same code (in any language) with & without GOU acceleration. Most of the time, separate codes have to be written to optimize CPU performance and GPU performance. I know this doesn’t help but I can at least commiserate.

Unfortunately, computer science has not reached the point that GPUs are a “plug-and-play” solution. However, as you’re aware, GPUs can offer great speedup when used efficiently.

2

u/simkessy Mar 18 '21

This helps. I dont know R or what she's working on very closely but at least we know she needs to change her code and it's not plug and play

2

u/geekboy730 Mar 18 '21

Is it by chance related to the TensorFlow package or machine learning? This is a great opportunity for GPU acceleration (speedup of 3x or more) and wouldn’t be too painful to rewrite.

1

u/Ader_anhilator Mar 18 '21

I'm an R user and as far as I know, the only GPU capabilities are for machine learning algos.

If you are planning on running data wrangling tasks you'll have to look into cuDF. However, that method won't be able to work with big data unless you have a gpu with more memory. Even then you might be limited.

0

u/[deleted] Mar 18 '21

[deleted]

1

u/simkessy Mar 18 '21

wait are you saying it's not possible with R in this case?

1

u/tugrul_ddr Mar 18 '21

I dont know R. But on C++,C,Python, you need Opencl bindings or cuda bindings. Then use bindings to write code for gpu. Specifically writing for gpu involves parallelization, optimization, etc that take some effort.