CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   CUDA programming problem (https://www.cfd-online.com/Forums/main/84315-cuda-programming-problem.html)

ztdep January 26, 2011 05:24

CUDA programming problem
 
Dear friends:
I am trying to studying the CUDA programming. i writeen the following simple code as the book

#include<stdio.h>

__global__ void kernel (void){ }
int main(){
kernel<<<1,1>>> ();
printf("hello,world\n");
return 0;
}


but i dot know how to compile it with visual studio 2008. i have installed all the toolkit provided by NVIDIA.
Coudl sombody give me some advices.
Regards


All times are GMT -4. The time now is 13:49.