views:

82

answers:

3

Do the parallel-for in .net 4.0 takes privilege of GPU computing automatically? Or I have to configure with some drivers so that it uses GPU.

A: 

Parallel.For does not use the GPU in your graphics card. It uses threads, multiple cores and hyperthreading to achieve its goals. There are no drivers available that will allow Parallel.For to make use of the GPU.

The only technology that I know of that allows you to parallelize work in the GPU (other than graphical processing work) is CUDA.

Robert Harvey
+1  A: 

If you want to take advantage of GPU parallelism for .NET, try the open soure Brahma library, noting that in its current incarnation is .NET 3.5. It's LINQ-able, just not 4.0 parallel LINQ-able.

Tim Trout
+4  A: 

No, PFX doesn't do that for you. Take a look at Microsoft Accelerator to run some code on a GPU. I recommend in particular Tomas Petricek's series of articles on F# and Accelerator.

Mauricio Scheffer