error in cuda_runtime_api.h

498 views
Skip to first unread message

Suresh Paidi

unread,
Jun 7, 2012, 3:04:36 AM6/7/12
to mcx-users, sures...@gmail.com
Hi,

I am getting lot of errors in cuda_runtime_api.h when I make mcx
binary file.
Does any one get these type of errors?
c:\program files\nvidia gpu computing toolkit\cuda\v4.2\include
\cuda_runtime_api.h(200) : error C2143: syntax error : missing ';'
before '__stdcall'
(200) : error C4430: missing type specifier - int assumed. Note: C++
does not support default-int
(217) : error C2143: syntax error : missing ';' before '__stdcall'
(217) : error C4430: missing type specifier - int assumed. Note: C++
does not support default-int
(269) : error C2143: syntax error : missing ';' before '__stdcall'
(269) : error C4430: missing type specifier - int assumed. Note: C++
does not support default-int
(269) : error C2065: 'cudaLimit' : undeclared identifier
(269) : error C2062: type 'unsigned __int64' unexpected
(293) : error C2143: syntax error : missing ';' before '__stdcall'
(293) : error C4430: missing type specifier - int assumed. Note: C++
does not support default-int
(293) : error C2061: syntax error : identifier 'cudaLimit'
(293) : error C4430: missing type specifier - int assumed. Note: C++
does not support default-int
(323) : error C2143: syntax error : missing ';' before '__stdcall'
(323) : error C4430: missing type specifier - int assumed. Note: C++
does not support default-int
(323) : error C2065: 'cudaFuncCache' : undeclared identifier

I got 200 errors like this!

do i need to do any changes in make file for 64bit OS??

Thanks,
Suresh

Qianqian Fang

unread,
Jun 7, 2012, 12:04:35 PM6/7/12
to mcx-...@googlegroups.com, Suresh Paidi, sures...@gmail.com
On 06/07/2012 03:04 AM, Suresh Paidi wrote:
Hi,

I am getting lot of errors in cuda_runtime_api.h when I make mcx
binary file.
Does any one get these type of errors?

hi Suresh

Recompiling mcx on windows is not simple. The
difficulty is not from mcx, but setting up cuda
on windows with visual studio. I remember having
similar issues using VS2010 with cuda. So I returned
to VS2008/VS2005 and compiled the binaries.

If you google "compile cuda visual studio 2010",
you can find a lot of complains, particularly the
following ones:

http://stackoverflow.com/questions/3953326/how-to-compile-cuda-app-is-visual-studio-2010
http://stackoverflow.com/questions/3685303/vs2010-compiler-and-cuda-error-linkage-specification-is-incompatible-with-previ

it looks like the older version of cuda does not support
VS2010. One of the suggestions in the comments is
also using VS2008 instead.

Qianqian

The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.

Reply all
Reply to author
Forward
0 new messages