Compile program in GPU

Hi, I wonder is there a way to compile code ( especially Rust ) in GPU. Because as you know when projects getting bigger, compile times and also fan noises increases.

1 Like

GPUs aren't a speed magic. They are only good at applying small amounts of mathematical computation to many many uniform numbers that are mostly independent of each other.

In compilation of programming languages there are no problems that fit this model, so trying to compile Rust on GPU would not make any sense.

5 Likes

In addition to what @kornel said, as I understand it there is a nontrivial latency involved in copying data from RAM to VRAM, which means that unless the problem is really well-suited (eg graphics rendering, AI computations) to the hardware, even if you could get it to run, it would likely end up being slower rather than faster.

3 Likes

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.