Ask for a simple CUDA fortran source code

I am just begining to use the CUDA fortran, but I have no idea how to start. Could someone help me and give me a simple .cuf file like c(i)=a(i)+b(i)? This can help me do future researches easily and faster. Plus, the compile command. P.S., I used the Visual Fortran 2008. Thanks alot.

Hi Addision827,

PVF includes a sample matmul project that you can compile and run. The exact location may be different on your system, the sample code can be found in the “C:\Program Files (x86)\Microsoft Visual Studio 9.0\PGI Visual Fortran\Samples\gpu\CUDAFor_Matmul\CUDAFor_Matmul” directory.

Hope this helps,
Mat