Hello,
I am an absolute beginner in CUDA. I have bought nVIDIA GTX 480 GPU in hope to improve
some computations. However I cannot make it work (I mean CUDA C). I have followed http://www.programmerfish.com/how-to-run-cuda-on-visual-studio-2008-vs08/,
but without any success. The differences between what I did and tutorial are:
I have checked following rules:
CUDA Driver API Build Rule (v4.0)
CUDA Runtime API Build Rule (v4.0)
instead of given in tutorial: cuda.rules which I do not have with my version of CUDA Toolkit
I didn’t include CUTIL32D.lib because I simply do not have it on my computer,
nor I have cutil_vs2008.sln which was mentioned in one of the posts.
I am using Win7 x64 however for now I am trying to build Win32 console application and so I have
included paths to lib, bin, include to x32 versions of libraries.
I have searched forum but none of the posts somehow connected to my problem did provide solution.
I have copied rules to MSVS 2008 folder.
The program I am trying to run:
#include "stdafx.h"
#include <cuda.h>
__global__ void HelloGPU(void){}
int _tmain(int argc, _TCHAR* argv[])
{
HelloGPU<<<1,1>>>();
return 0;
}
The errors I get:
1>Compiling…
1>HelloWorld.cpp
1>…\cuda\helloworld\helloworld\helloworld.cpp(7) : error C2144: syntax error : ‘void’ should be preceded by ‘;’
1>…\cuda\helloworld\helloworld\helloworld.cpp(7) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>…\cuda\helloworld\helloworld\helloworld.cpp(11) : error C2059: syntax error : ‘<’
Thanks in advance for help,
Regards