Dear all:
I am new to CUDA and trying to compile following program:
#include <stdio.h>
global void kernel (void) {
}
int main( void ) {
kernel<<1,1>>();
printf( "Hello, World!\n");
return 0;
}
I am getting the following errors:
compaq@ubuntu:~/CUDA/Programs$ nvcc example3.cu
example3.cu(12): error: expression must have integral or enum type
example3.cu(12): error: expected an expression
2 errors detected in the compilation of “/tmp/tmpxft_00000b5d_00000000-4_example3.cpp1.ii”.
compaq@ubuntu:~/CUDA/Programs$
I am unable to figure out what is wrong here.
Wei