Hello.
I use Ubuntu 9-10(gcc 4.3, CUDA(last version)) for develop.
I’ve successfully installed CUDA SDK to /NVIDIA_GPU_Computing_SDK and command make
in ‘C’ directory was success.
I tried to write CUDA “hello world” program.
this is it:
[codebox]
#include <stdio.h>
#include <cuda.h>
#include <cuda_runtime.h>
global void hello() {
printf("%s", "hello world!\n");
}
main(int argc, char** argv) {
hello<<<1, 3>>>(); // i suppose, it must run 3 times (?is it true?)
return 0;
}
[/codebox]
, but when I try compile it, there are some bugs:
[codebox]
vas@red-eye:~/cuda/test$ nvcc main.c
main.c: In function ‘main’:
main.c:10: error: expected expression before ‘<’ token
[/codebox]
Could you help me?
(Sorry for language barrier, I’m Russian and I know english less than the Intermediate level. If you’re Russian, please, отвечайте на руÑÑком :rolleyes: )