I'm a newbie using cuda. My version cuda is 10.02. I have a problem when I call hello world program. This is the file hello.cu:
#include <cstdlib>
#include <cstdio>
#include <cuda.h>
using namespace std;
__global__ void mykernel(void) {
printf("GPU Hello World!\n");
}
int main(void) {
printf("CPU Hello World! \n");
mykernel<<<1,1>>>();
return 0;
}
But only receive the output:
CPU Hello World!
I am quite rookie on this, so, what can be happening? should I do something to call the kernel function?