This project is read-only.

Copying processes to GPU

Jul 28, 2013 at 5:42 PM
Hello I was wondering if there are any examples that copy processes to GPU.

Something similar to how you multi thread on a cpu.

Jul 28, 2013 at 6:56 PM
What do you mean by "copy processes to GPU"? You're not talking about process forking as done on Linux, aren't you?
If you just mean some basic examples on how to port existing code to Cuda, check out the samples coming with the Cuda toolkit. Or more managedCuda specific, the samples for managedCuda in the download section...

Jul 28, 2013 at 7:52 PM
Hey thanks for the reply.

What I mean.

I want to capture using a webcam. However what i would like to do is
ThreadStart job = new ThreadStart(saveavi);
Thread thread = new Thread(job);
if there are any codes available to do that?
something similar to cuda.
Jul 28, 2013 at 9:07 PM
In case of (managed)Cuda, you need to implement saveavi as a kernel. There's no example on how to do that specifically for your case, but the cuda samples contain a lot of material covering many use cases; ManagedCuda provides also examples on how to include kernels in C#. You will need to master the cuda language in order to run things on GPU, it's probably not as easy as your thread.start() code fragment...