mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   GPU Computing (https://www.mersenneforum.org/forumdisplay.php?f=92)
-   -   Compiling CUDA programs on VS 2010 Express (https://www.mersenneforum.org/showthread.php?t=15446)

ET_ 2011-03-22 11:01

Compiling CUDA programs on VS 2010 Express
 
The title says it all :smile:

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

Thanks in advance...

Luigi

TheJudger 2011-03-22 14:55

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

ET_ 2011-03-22 16:52

[QUOTE=TheJudger;256361]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[/QUOTE]

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

Luigi

jasonp 2011-03-22 17:10

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.

ET_ 2011-03-22 17:23

[QUOTE=jasonp;256377]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.[/QUOTE]

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

JT6 2011-03-23 06:27

Under the Project Properties, you have to set the Platform Toolset to v90. Also, add the CUDA Build Customization Files and it should compile.

ET_ 2011-03-23 13:17

[QUOTE=JT6;256424]Under the Project Properties, you have to set the Platform Toolset to v90. Also, add the CUDA Build Customization Files and it should compile.[/QUOTE]

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? :smile:

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

Luigi

JT6 2011-03-24 00:27

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 2011-03-24 02:56

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.

ET_ 2011-03-24 10:11

Thanks again JT6. I'll try that today. :bow:

Luigi


All times are UTC. The time now is 15:12.

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