Hello,
I am extremely new to programming. I have some experience in C++, Java and C#. I am trying to learn Cuda since my professor asked me to learn it before I start doing research with him next semester. My problem is; i cant seem to even get basic “hello world” program running in cuda code. I have tried searching the net, but it seems the posts either don’t pertain to my issue, or the issue is buried in programs that are beyond my level.
I am using VS 2010. I have installed the Cuda took kit.
Below is everything i have in the .cpp file.
#include
#include<stdio.h>
#include"cuda.h"
#include"cuda_runtime.h"
#include"device_launch_parameters.h"
#include"book.h"
using namespace std;
global void kernel( void ){}
int main (void){
kernel<<<1,1>>>(); //i underlined where vs indicates the problem.
printf(“hello, world!/n”);
return 0;
}
any help on what i seem to be doing wrong would be much appreciated.