Hello-world for CUDA.Net
问题 I'm trying to write a childish app with CUDA.Net, but I'm out of luck. I've figured out to: using GASS.CUDA; // ... var c = new CUDA(); // c.Launch(myfunc); // ???? how ??? myfunc apparently should be of type GASS.CUDA.Types.CUfunction but I didn't find how to define one. 回答1: First you need a .cu file with your kernel (function to be executed on a GPU). Let's have a file mykernel.cu : extern "C" __global__ void fooFunction(float4* data) { // there can be some CUDA code ... } This have to be