Does any one knows how to run cuda program on visual studio-2003 ?
Please let me know af anyone have any info.
Thanks in advance.
Does any one knows how to run cuda program on visual studio-2003 ?
Please let me know af anyone have any info.
Thanks in advance.
I’m on Windows 7 and have VS 2008 so you have to adjust the path name in the first command appropriately (for 2003):
This also supposes that you put the CUDA SDK in c:\cuda
C:\Projects\CUDA\>"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\x86_amd64\vcvarsx86_amd64.bat"
Setting environment for using Microsoft Visual Studio 2008 Beta2 x64 cross tools
.
C:\Projects\CUDA\>set PATH=c:\cuda\bin64;c:\cuda\lib64\;%PATH%
C:\Projects\CUDA\>nvcc -ccbin "\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin" -o incrementArray.exe incrementArray.cu
incrementArray.cu
tmpxft_00000dd4_00000000-3_incrementArray.cudafe1.gpu
tmpxft_00000dd4_00000000-8_incrementArray.cudafe2.gpu
incrementArray.cu
tmpxft_00000dd4_00000000-3_incrementArray.cudafe1.cpp
tmpxft_00000dd4_00000000-13_incrementArray.ii
C:\Projects\CUDA\>
Small simplification: you don’t need to make the nvcc command that complicated.
Nvcc is like gcc in that the easiest starting point is simply:
nvcc -o incrementArray.exe incrementArray.cu
that is, you can leave out the -ccbin switch and its argument.
Thanks for the reply…
I tried the command mentioned by you , below error message is coming ( visual studio 2005 command prompt is used):
nvcc -ccbin “C:\Program Files (x86)\Microsoft Visual Studio .NET 2003\Vc7\bin” -o reverArray.exe reverArray.cu
[b]nvcc warning :
nvcc support for MSVC 7.1 has been deprecated and is no longer being maintained
nvcc fatal : 64 bit compilation is only supported for MSVC 8.0[/b]
even with the use o -m 32 option error is coming as below:
mspdb71.dll is not found …
when i coped manually below error is coming:
nvcc warning :
d
reverArray.cu
c:\CUDA\include\host_defines.h(130) : error C2010: ‘.’ : unexpected in macro for
mal parameter list
c:\CUDA\include\host_defines.h(130) : error C2010: ‘.’ : unexpected in macro for
mal parameter list
c:\CUDA\include\host_defines.h(130) : error C2010: ‘.’ : unexpected in macro for
mal parameter list
c:\CUDA\include\vector_types.h(73) : error C2010: ‘.’ : unexpected in macro form
al parameter list
c:\CUDA\include\vector_types.h(73) : error C2010: ‘.’ : unexpected in macro form
al parameter list
c:\CUDA\include\vector_types.h(73) : error C2010: ‘.’ : unexpected in macro form
al parameter list
c:\CUDA\include\vector_types.h(73) : error C2010: ‘)’ : unexpected in macro form
al parameter list
c:\CUDA\include\vector_types.h(180) : warning C4002: too many actual parameters
for macro ‘__cuda_builtin_vector_align8’
c:\CUDA\include\vector_types.h(183) : warning C4002: too many actual parameters
for macro ‘__cuda_builtin_vector_align8’
c:\CUDA\include\vector_types.h(200) : warning C4002: too many actual parameters
for macro ‘__cuda_builtin_vector_align8’
c:\CUDA\include\vector_types.h(203) : warning C4002: too many actual parameters
for macro ‘__cuda_builtin_vector_align8’
c:\CUDA\include\vector_types.h(250) : warning C4002: too many actual parameters
for macro ‘__cuda_builtin_vector_align8’
c:\CUDA\include\vector_types.h(253) : warning C4002: too many actual parameters
for macro ‘__cuda_builtin_vector_align8’
c:\CUDA\include\vector_types.h(313) : warning C4002: too many actual parameters
for macro ‘__cuda_builtin_vector_align8’
I really need to make dll on visual studio 2003 , please help.
well menomnon,
I am getting following error -
c:\CUDA\include\host_config.h(115) : fatal error C1083: Cannot open include file: ‘crtdefs.h’: No such
file or directory
using command in command prompt of 2003 :
nvcc -ccbin “D:\Microsoft Visual Studio .NET 2003\Vc7\bin” -m 32 -o something.exe reverArray.cu
I also observed that in the include dir of 2003 “D:\Microsoft Visual Studio .NET 2003\Vc7\include” crtdefs.h doesn’t exist.
Now that I take the time to actually look it up, I’m not sure that CUDA supports VS 2003. You may need a minimum of VS 2005.
Can someone confirm this?
And now that I pay even a little more attention (mindfulness, right?), the message
nvcc support for MSVC 7.1 has been deprecated
pretty much confirms that VS 2003 won’t work and you need a minimum of VS 2005.
VS 2003 corresponds to msvc 7.1; 2005 corresponds to msvc 8.0; and 2008 = msvc 9.0.
That’s very clear, no?
menomnon,
Isnt it that NVIDIA is not approving to use VS2003 as they have stopped supporting it.
BUt is it that CUDA programs can never be built on 2003.
can somebody from NVIDIA confirm it?
I think cuda can be built on 2003 but NVIDIA wont support the bugs.
nabarunpaul,
I think this is the kind of question that Nvidia isn’t going to give you an answer to.
There are almost certainly costs associated with maintaining backwards compatibility with VS 2003. However it’s also probably the case that maintaining VS 2003 compatibility would be a technical constraint. Actually these might be two ways of saying the same thing.
About the only practical thing (although how desirable?) I can suggest is to see if you can find an older copy of the CUDA SDK at a point that it was still compatible with VS 2003.
However it’s my impression that current CUDA SDKs are compatible with the free, Express versions of VS and if this is the case, why don’t you download the Express version of VS 2005 and give it a try? That would be the most forward looking option.