mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Hardware > GPU Computing

Reply
 
Thread Tools
Old 2011-03-22, 11:01   #1
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

2×3×17×47 Posts
Default Compiling CUDA programs on VS 2010 Express

The title says it all

Any hints on how to configure Microsoft Visual Studio 2010 Express Edition to compile CUDA programs? Is it possible?

Thanks in advance...

Luigi
ET_ is offline   Reply With Quote
Old 2011-03-22, 14:55   #2
TheJudger
 
TheJudger's Avatar
 
"Oliver"
Mar 2005
Germany

2×3×5×37 Posts
Default

Hi Luigi,

I've tried once and failed... but perhaps I'm not the right person to ask for Windows related stuff.
May I ask why you want to use VS 2010 Express?

Oliver
TheJudger is offline   Reply With Quote
Old 2011-03-22, 16:52   #3
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

2×3×17×47 Posts
Default

Quote:
Originally Posted by TheJudger View Post
Hi Luigi,

I've tried once and failed... but perhaps I'm not the right person to ask for Windows related stuff.
May I ask why you want to use VS 2010 Express?

Oliver
Because it's free...
And because I have such compiler at work.

Luigi
ET_ is offline   Reply With Quote
Old 2011-03-22, 17:10   #4
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

67168 Posts
Default

IIRC the v3.2 CUDA toolkit requires the MSVC2008 Express Edition to be installed on your system, even if you are using MSVC2010. I don't know any more details, because I use MinGW to build CUDA programs on windows and gcc can link Nvidia's libraries directly.
jasonp is offline   Reply With Quote
Old 2011-03-22, 17:23   #5
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

2×3×17×47 Posts
Default

Quote:
Originally Posted by jasonp View Post
IIRC the v3.2 CUDA toolkit requires the MSVC2008 Express Edition to be installed on your system, even if you are using MSVC2010. I don't know any more details, because I use MinGW to build CUDA programs on windows and gcc can link Nvidia's libraries directly.
That's what I was afraid of...

Diving into the Web I found links about how difficult can be living with CUDA and VS2010 XE.

Luigi
ET_ is offline   Reply With Quote
Old 2011-03-23, 06:27   #6
JT6
 
Mar 2011

112 Posts
Default

Under the Project Properties, you have to set the Platform Toolset to v90. Also, add the CUDA Build Customization Files and it should compile.
JT6 is offline   Reply With Quote
Old 2011-03-23, 13:17   #7
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

2×3×17×47 Posts
Default

Quote:
Originally Posted by JT6 View Post
Under the Project Properties, you have to set the Platform Toolset to v90. Also, add the CUDA Build Customization Files and it should compile.
Thank you JT6. I set the project properties. Any more hints for the second part of your answer?Which are the CUDA Build Customization Files, and where should I add them?

Sorry for the questions, I'm a bit of a newbie...

Luigi
ET_ is offline   Reply With Quote
Old 2011-03-24, 00:27   #8
JT6
 
Mar 2011

310 Posts
Default

If you look in the CUDA installed directory, under extras\visual_studio_integration, you will find the rules. Copy them to
VisualStudioDir\VC\VCProjectDefaults. Also, if you run gpucomputing_intellisense, it will add the cu/cl files to the MSVC intellisense.
JT6 is offline   Reply With Quote
Old 2011-03-24, 02:56   #9
JT6
 
Mar 2011

3 Posts
Default

Correction: Rules are MSVS 2008, you will have to add a CUDA Target to that directory or solution folder and add it that way. There are a few available online, but I believe one comes with Parallel NSight.
JT6 is offline   Reply With Quote
Old 2011-03-24, 10:11   #10
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

2·3·17·47 Posts
Default

Thanks again JT6. I'll try that today.

Luigi
ET_ is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Which forum CUDA programs are DP vs SP? VBCurtis GPU Computing 3 2017-12-26 18:50
PFGW build help (with MSVC 2012 Express) Prime95 Software 5 2013-08-07 23:51
Influence of PCI Express Lanes to GPU Computing Brain Hardware 6 2012-05-15 18:37
PCI Express 3.0 ATH GPU Computing 2 2011-07-08 13:34
Can someone help me express this more concisely? Orgasmic Troll Math 2 2004-02-06 14:12

All times are UTC. The time now is 14:46.

Thu Jan 28 14:46:19 UTC 2021 up 56 days, 10:57, 0 users, load averages: 2.30, 2.53, 2.66

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.