![]() |
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 |
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=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 |
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=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 |
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=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 |
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. |
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.
|
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.