# CUDA VS Wizard 2.0 beta

**URL:** <https://forums.developer.nvidia.com/t/cuda-vs-wizard-2-0-beta/6091>\
**Category:** CUDA Programming and Performance\
**Created:** [October 27, 2008, 8:08am UTC](https://forums.developer.nvidia.com/t/cuda-vs-wizard-2-0-beta/6091 "2008-10-27T08:08:02Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![kyzhao](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@kyzhao](https://forums.developer.nvidia.com/u/kyzhao)\
**Post date:** [October 27, 2008, 8:08am UTC](https://forums.developer.nvidia.com/t/cuda-vs-wizard-2-0-beta/6091/1 "2008-10-27T08:08:02Z")

</div>

[url=“[CUDA VS Wizard download | SourceForge.net](http://sourceforge.net/projects/cudavswizard)”][http://sourceforge.net/projects/cudavswizard[/url]](http://sourceforge.net/projects/cudavswizard%5B/url%5D)

we can download here.

Thanks mas913’s new rules. I change the cuda.rules with the new rule.

The new rule can support all nvcc command options.

The new wizard(2.0beta) can support VS2005 (x86,x64), VS2005 Express (x86,x64).

If anyone think it’s interesting, plz join the project :)

Any problem plz let me know:)

* * *

please use the new version 2.0release.

[url=“[http://forums.nvidia.com/index.php?showtopic=83054](http://forums.nvidia.com/index.php?showtopic=83054)”][http://forums.nvidia.com/index.php?showtopic=83054[/url]](http://forums.nvidia.com/index.php?showtopic=83054%5B/url%5D)

---

<div class="post-metadata">

**Author:** ![kyzhao](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@kyzhao](https://forums.developer.nvidia.com/u/kyzhao)\
**Post date:** [November 14, 2008, 4:54pm UTC](https://forums.developer.nvidia.com/t/cuda-vs-wizard-2-0-beta/6091/2 "2008-11-14T16:54:33Z")

</div>

when run debug or release model plz reset the: right key on the project → property → CUDA → Output → Intern mode: set Real:)

---

<div class="post-metadata">

**Author:** ![kyzhao](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@kyzhao](https://forums.developer.nvidia.com/u/kyzhao)\
**Post date:** [November 17, 2008, 2:39am UTC](https://forums.developer.nvidia.com/t/cuda-vs-wizard-2-0-beta/6091/3 "2008-11-17T02:39:13Z")

</div>

> [@](#):
>
> Could you please specify what changes need to be introduced into the file
> 
> “c:\Program Files\Microsoft Visual Studio 8\VC\VCWizards\CUDA\CUDAWinApp\Scripts\1033\default.js”
> 
> in order to set that property.

that is in the build rules.

to change it there are two ways.

1. 

D:\Program Files\Microsoft Visual Studio 8\VC\VCProjectDefaults\cuda.rules

find “InternMode” → DefaultValue=“0”;

---

<div class="post-metadata">

**Author:** ![L\_F](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@L\_F](https://forums.developer.nvidia.com/u/L_F)\
**Post date:** [November 17, 2008, 8:19pm UTC](https://forums.developer.nvidia.com/t/cuda-vs-wizard-2-0-beta/6091/4 "2008-11-17T20:19:01Z")

</div>

Wizard 2.0 beta doesn’t link on my VS 2005.  
Resulting command line has all neccessary libs:

nvcc.exe -ccbin “C:\Program Files\Microsoft Visual Studio 8\VC\bin” -I"C:\CUDA\include" -I"C:\Program Files\NVIDIA Corporation\NVIDIA CUDA SDK\common\inc" -O2 -arch sm\_10 -code sm\_10 --host-compilation C -g -c -m 32 -L “C:\CUDA\lib” -L “C:\Program Files\NVIDIA Corporation\NVIDIA CUDA SDK\common\lib” --library “cuda.lib” --library “cudart.libl” --library “cufft.lib” --library “cutil32.lib” -o “Release\CudaConsoleThreads.obj” -odir “Release” -ext none -int real CudaConsoleThreads.vcproj

but output:

cudaconsole\_kernel.obj : error LNK2001: unresolved external symbol \_cudaMemcpyToSymbol@20  
cudaconsole\_kernel.obj : error LNK2001: unresolved external symbol \_cudaGetSymbolAddress@8  
…  
cudaconsole\_kernel.obj : error LNK2001: unresolved external symbol \_cudaCreateChannelDesc@20  
cudaconsole\_kernel.obj : error LNK2001: unresolved external symbol \_cufftPlan1d@16  
cudaconsole\_kernel.obj : error LNK2001: unresolved external symbol \_cudaMemcpy@16

Wizard 1.2 worked with the same code without any problems. What should I change in the 2.0 settings?

---

<div class="post-metadata">

**Author:** ![kyzhao](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@kyzhao](https://forums.developer.nvidia.com/u/kyzhao)\
**Post date:** [November 18, 2008, 6:03am UTC](https://forums.developer.nvidia.com/t/cuda-vs-wizard-2-0-beta/6091/5 "2008-11-18T06:03:44Z")

</div>

> [@](#):
>
> Wizard 2.0 beta doesn’t link on my VS 2005.
> 
> Resulting command line has all neccessary libs:
> 
> nvcc.exe -ccbin “C:\Program Files\Microsoft Visual Studio 8\VC\bin” -I"C:\CUDA\include" -I"C:\Program Files\NVIDIA Corporation\NVIDIA CUDA SDK\common\inc" -O2 -arch sm\_10 -code sm\_10 --host-compilation C -g -c -m 32 -L “C:\CUDA\lib” -L “C:\Program Files\NVIDIA Corporation\NVIDIA CUDA SDK\common\lib” --library “cuda.lib” --library “cudart.libl” --library “cufft.lib” --library “cutil32.lib” -o “Release\CudaConsoleThreads.obj” -odir “Release” -ext none -int real CudaConsoleThreads.vcproj
> 
> but output:
> 
> cudaconsole\_kernel.obj : error LNK2001: unresolved external symbol \_cudaMemcpyToSymbol@20
> 
> cudaconsole\_kernel.obj : error LNK2001: unresolved external symbol \_cudaGetSymbolAddress@8
> 
> …
> 
> cudaconsole\_kernel.obj : error LNK2001: unresolved external symbol \_cudaCreateChannelDesc@20
> 
> cudaconsole\_kernel.obj : error LNK2001: unresolved external symbol \_cufftPlan1d@16
> 
> cudaconsole\_kernel.obj : error LNK2001: unresolved external symbol \_cudaMemcpy@16
> 
> Wizard 1.2 worked with the same code without any problems. What should I change in the 2.0 settings?

1. do you include the “cudaconsole\_kernel.cu” file into other cu files? if so, right key on the cudaconsole\_kernel.cu file and choose customer rule, means don’t use compile command for this file.

---

<div class="post-metadata">

**Author:** ![L\_F](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@L\_F](https://forums.developer.nvidia.com/u/L_F)\
**Post date:** [November 18, 2008, 4:48pm UTC](https://forums.developer.nvidia.com/t/cuda-vs-wizard-2-0-beta/6091/6 "2008-11-18T16:48:34Z")

</div>

> [@](#):
>
> 1. do you include the “cudaconsole\_kernel.cu” file into other cu files? if so, right key on the cudaconsole\_kernel.cu file and choose customer rule, means don’t use compile command for this file.

Thank you for the answer. \*.cu files were compiling with custom rules. Don’t know why, but today it works :)

After installing 2.0 all the project settings appeared to be removed and project failed on compiling even with restored additional pathes and libraries. Then I installed again 1.2 and worked with it, everything was ok. And finally installed again 2.0 and for this attempt all the project settings kept correctly.

---

<div class="post-metadata">

**Author:** ![ChusCarro](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@ChusCarro](https://forums.developer.nvidia.com/u/ChusCarro)\
**Post date:** [November 19, 2008, 4:18pm UTC](https://forums.developer.nvidia.com/t/cuda-vs-wizard-2-0-beta/6091/7 "2008-11-19T16:18:30Z")

</div>

I have a project made with the wizard an this code

[codebox]#include \<stdlib.h\>

#include \<stdio.h\>

#include \<string.h\>

#include \<math.h\>

#include \<cuda.h\>

#include \<cutil.h\>

#include \<cuda\_runtime.h\>

**global** void LiftGeometry()

{

```
int x = threadIdx.x;

```

}

void CudaCall()

{

```
LiftGeometry<<<1, 1>>>();

```

}

int main()

{

```
CudaCall();

```

}[/codebox]

and I have this problems:

x:\proyecto final de carrera\cÃ³digos\utd-gpu\utd-gpu\KernelTest.cu(12) : error C2065: ‘threadIdx’ : identifier don’t declared

1\>x:\proyecto final de carrera\cÃ³digos\utd-gpu\utd-gpu\KernelTest.cu(12) : error C2228: the left operator of ‘.x’ must have class/struct/union

1\> the type is ‘‘unknown-type’’

1\>x:\proyecto final de carrera\cÃ³digos\utd-gpu\utd-gpu\KernelTest.cu(17) : error C2059: sintaxis error: ‘\<’

1\>Test.cpp

If someone knows where is the problem…

Thank you

---

<div class="post-metadata">

**Author:** ![kyzhao](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@kyzhao](https://forums.developer.nvidia.com/u/kyzhao)\
**Post date:** [November 20, 2008, 3:44am UTC](https://forums.developer.nvidia.com/t/cuda-vs-wizard-2-0-beta/6091/8 "2008-11-20T03:44:58Z")

</div>

> [@](#):
>
> I have a project made with the wizard an this code
> 
> [codebox]#include \<stdlib.h\>
> 
> #include \<stdio.h\>
> 
> #include \<string.h\>
> 
> #include \<math.h\>
> 
> #include \<cuda.h\>
> 
> #include \<cutil.h\>
> 
> #include \<cuda\_runtime.h\>
> 
> **global** void LiftGeometry()
> 
> {
> 
> ```
> int x = threadIdx.x;
> 
> ```
> 
> }
> 
> void CudaCall()
> 
> {
> 
> ```
> LiftGeometry<<<1, 1>>>();
> 
> ```
> 
> }
> 
> int main()
> 
> {
> 
> ```
> CudaCall();
> 
> ```
> 
> }[/codebox]
> 
> and I have this problems:
> 
> x:\proyecto final de carrera\cÃ³digos\utd-gpu\utd-gpu\KernelTest.cu(12) : error C2065: ‘threadIdx’ : identifier don’t declared
> 
> 1\>x:\proyecto final de carrera\cÃ³digos\utd-gpu\utd-gpu\KernelTest.cu(12) : error C2228: the left operator of ‘.x’ must have class/struct/union
> 
> 1\> the type is ‘‘unknown-type’’
> 
> 1\>x:\proyecto final de carrera\cÃ³digos\utd-gpu\utd-gpu\KernelTest.cu(17) : error C2059: sintaxis error: ‘\<’
> 
> 1\>Test.cpp
> 
> If someone knows where is the problem…
> 
> Thank you

i guess the file was compiled by C++ compiler but not NVCC compiler.

how do you create the project?

---

<div class="post-metadata">

**Author:** ![ChusCarro](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@ChusCarro](https://forums.developer.nvidia.com/u/ChusCarro)\
**Post date:** [November 20, 2008, 9:47am UTC](https://forums.developer.nvidia.com/t/cuda-vs-wizard-2-0-beta/6091/9 "2008-11-20T09:47:16Z")

</div>

> [@](#):
>
> i guess the file was compiled by C++ compiler but not NVCC compiler.
> 
> how do you create the project?

I’ve selected create new project-\>Visual C+±\>CUDA-\>CUDAWinApp

Into the project I’ve created a new file called KernelTest.cu and I’ve written that code.

---

<div class="post-metadata">

**Author:** ![ChusCarro](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@ChusCarro](https://forums.developer.nvidia.com/u/ChusCarro)\
**Post date:** [November 20, 2008, 9:50am UTC](https://forums.developer.nvidia.com/t/cuda-vs-wizard-2-0-beta/6091/10 "2008-11-20T09:50:13Z")

</div>

Now I’ve done the same in a new project without other files that I have. This new project works. Maybe it’s some configuration that I’ve changed. I’m going to make a new project whit all my files. Thank you

---

<div class="post-metadata">

**Author:** ![kyzhao](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@kyzhao](https://forums.developer.nvidia.com/u/kyzhao)\
**Post date:** [November 20, 2008, 9:50am UTC](https://forums.developer.nvidia.com/t/cuda-vs-wizard-2-0-beta/6091/11 "2008-11-20T09:50:50Z")

</div>

> [@](#):
>
> I’ve selected create new project-\>Visual C+±\>CUDA-\>CUDAWinApp
> 
> Into the project I’ve created a new file called KernelTest.cu and I’ve written that code.

can you send your project to me?

---

<div class="post-metadata">

**Author:** ![junjanes](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@junjanes](https://forums.developer.nvidia.com/u/junjanes)\
**Post date:** [November 20, 2008, 12:51pm UTC](https://forums.developer.nvidia.com/t/cuda-vs-wizard-2-0-beta/6091/12 "2008-11-20T12:51:54Z")

</div>

I’m using this version with the fix you suggested and it works quite ok. Thank you.

---

<div class="post-metadata">

**Author:** ![L\_F](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@L\_F](https://forums.developer.nvidia.com/u/L_F)\
**Post date:** [November 20, 2008, 4:13pm UTC](https://forums.developer.nvidia.com/t/cuda-vs-wizard-2-0-beta/6091/13 "2008-11-20T16:13:51Z")

</div>

Another thing: project compiled with wizard 2.0 could not do breakpoint in a host function (\*.cu file) while compiling with 1.2 works with such a breakpoint correctly.

---

<div class="post-metadata">

**Author:** ![kyzhao](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@kyzhao](https://forums.developer.nvidia.com/u/kyzhao)\
**Post date:** [November 20, 2008, 4:56pm UTC](https://forums.developer.nvidia.com/t/cuda-vs-wizard-2-0-beta/6091/14 "2008-11-20T16:56:29Z")

</div>

> [@](#):
>
> Another thing: project compiled with wizard 2.0 could not do breakpoint in a host function (\*.cu file) while compiling with 1.2 works with such a breakpoint correctly.

When you want to debug it in \*Release model: right key-\>property-\>general-\>Debug information -g

---

<div class="post-metadata">

**Author:** ![L\_F](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@L\_F](https://forums.developer.nvidia.com/u/L_F)\
**Post date:** [November 20, 2008, 6:22pm UTC](https://forums.developer.nvidia.com/t/cuda-vs-wizard-2-0-beta/6091/15 "2008-11-20T18:22:40Z")

</div>

> [@](#):
>
> When you want to debug it in \*Release model: right key-\>property-\>general-\>Debug information -g

Thanks, it works!

---

<div class="post-metadata">

**Author:** ![guan](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@guan](https://forums.developer.nvidia.com/u/guan)\
**Post date:** [November 20, 2008, 6:57pm UTC](https://forums.developer.nvidia.com/t/cuda-vs-wizard-2-0-beta/6091/16 "2008-11-20T18:57:26Z")

</div>

Hi,

I’m staring using CUDA.

After some fight with the Enviroment Variable I’m ready to start to work.  
I have Vista 64 and I have installed the 32 and 64 CUDA toolkit and SDK.  
Using different Envioroment I enable the compilation for 32 or 64 bit.

By default, the name of the variable that I use for 32 bit ( CUDA\_PATH, … )are the same as CUDA Wizar use it.

For 64 bit I use CUDA\_PATH\_64, …

I’m interesting to create another cuda.rule file for 64 bit using my variable and in this way I can choose to create the template for one platform or the other.

Could you tell me witch variable I need to change in the original cuda.rule to make my intention?

Thanks,  
GUAN

---

<div class="post-metadata">

**Author:** ![kyzhao](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@kyzhao](https://forums.developer.nvidia.com/u/kyzhao)\
**Post date:** [November 20, 2008, 8:05pm UTC](https://forums.developer.nvidia.com/t/cuda-vs-wizard-2-0-beta/6091/17 "2008-11-20T20:05:19Z")

</div>

to:guan

This default variable is not in the rule but in the default.js file.

D:\Program Files\Microsoft Visual Studio 8\VC\VCWizards\CUDA\CUDAWinApp\Scripts\1033\default.js

you can find the path:)

BTW, do you have interesting to join this project to make the wizard stronger?~~~…

---

<div class="post-metadata">

**Author:** ![guan](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@guan](https://forums.developer.nvidia.com/u/guan)\
**Post date:** [November 20, 2008, 10:12pm UTC](https://forums.developer.nvidia.com/t/cuda-vs-wizard-2-0-beta/6091/18 "2008-11-20T22:12:17Z")

</div>

> [@](#):
>
> to:guan
> 
> This default variable is not in the rule but in the default.js file.
> 
> D:\Program Files\Microsoft Visual Studio 8\VC\VCWizards\CUDA\CUDAWinApp\Scripts\1033\default.js
> 
> you can find the path:)
> 
> BTW, do you have interesting to join this project to make the wizard stronger?~~~…

Thanks,

Well Now I have open several project :P, I don’t have time to belong to another project as programing , but if you need a beta tester tell me, if I have time then I test the new release without problem :)

Thanks,

GUAN

---

<div class="post-metadata">

**Author:** ![kyzhao](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@kyzhao](https://forums.developer.nvidia.com/u/kyzhao)\
**Post date:** [November 21, 2008, 9:16am UTC](https://forums.developer.nvidia.com/t/cuda-vs-wizard-2-0-beta/6091/19 "2008-11-21T09:16:28Z")

</div>

GUAN: \>\_\<! Good test is important as develop.

Thanks:)

---

<div class="post-metadata">

**Author:** ![guan](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@guan](https://forums.developer.nvidia.com/u/guan)\
**Post date:** [November 22, 2008, 8:33pm UTC](https://forums.developer.nvidia.com/t/cuda-vs-wizard-2-0-beta/6091/20 "2008-11-22T20:33:28Z")

</div>

Hi,

I have another question about CUDA WIZARD.

When I press New Project in VS I want to have two Item: CUDA and CUDA64.

For it, I made a copy of the whole CUDA directory form VCWizard and rename the copy to CUDA64.  
I copied too the file cuda-win-app-msvc.vcproj and rename to cuda64-win-app-msvc.vcproj  
I made the same with cuda.rule =\> cuda64.rule

I changed several variable to adjust the scripts to my configuration.

I can’t test my changes because not appear CUDA64 in new=\>Project =\> Visual C++

I suppose I new to add something into a file or register but I don’t know what exactly.

Could you tell me what is ti?  
GUAN

[Next page](https://forums.developer.nvidia.com/t/cuda-vs-wizard-2-0-beta/6091.md?page=2)
