Hello Sir ,
I am working on the Nvidia GPU .
Here how it goes .
I was supposed to run Mars_v2.zip on the GPU machine available on this link
[url=“Mars”]http://www.cse.ust.hk/gpuqp/Mars.html[/url]
the code is in vc++ environment .
gathering the steps from different sources , idid :
first i installed the drivers for the nvidia
then the cuda toolkit and sdk from
[url=“http://developer.nvidia.com/object/cuda_3_0_downloads.html”]http://developer.nvidia.com/object/cuda_3_0_downloads.html[/url]
for the 64bit machine .
the sample code is created on VS 5 but we have VS 8 on the machine .
the code contains .cu files which are to be compiled by the nvcc.exe compiler provided in the cuda toolkit
compiling the files , compiles all the files but 2 .
these 2 files somehow includes the window.h header which further includes windef.h , winnt.h , winbase.h (these are the files in the windows sdk)
and the compiler is showing errors on them … likes …
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\windef.h(156): error: expected an identifier
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\windef.h(157): error: expected an identifier
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\windef.h(172): error: expected an identifier
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(276): error: expected an identifier
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(280): error: expected an identifier
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(353): error: expected an identifier
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(353): error: explicit type is missing (“int” assumed)
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(353): error: explicit type is missing (“int” assumed)
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(354): error: expected an identifier
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(354): error: explicit type is missing (“int” assumed)
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(356): error: expected an identifier
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(356): error: explicit type is missing (“int” assumed)
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(356): error: explicit type is missing (“int” assumed)
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(359): error: expected an identifier
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(359): error: explicit type is missing (“int” assumed)
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(391): error: identifier “LPCSTR” is undefined
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(2260): error: incomplete type is not allowed
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(2261): error: expected a “)”
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(7048): error: expected a declaration
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(9233): error: expected a declaration
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(9234): error: expected a declaration
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(10576): error: expected a declaration
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(11413): error: expected a declaration
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(11440): error: expected a declaration
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winbase.h(1248): error: expected a declaration
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winbase.h(2609): error: identifier “LPCSTR” is undefined
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winbase.h(3189): error: identifier “LPCSTR” is undefined
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winbase.h(5727): error: identifier “LPCSTR” is undefined
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winbase.h(5735): error: identifier “LPCSTR” is undefined
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winbase.h(5753): error: identifier “LPCCH” is undefined
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winbase.h(5771): error: identifier “LPCCH” is undefined
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winbase.h(6124): error: expected a declaration
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winbase.h(6125): error: expected a declaration
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winbase.h(6179): error: identifier “LPCSTR” is undefined
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winbase.h(6203): error: identifier “LPCSTR” is undefined
i dont have any idea how to deal with this .
it may be the case that i have been going the whole way wrong .
please help .
Thanking you
Sushant Sharma