Error on building .NET code.

I’ve been interested in CUDA for a while and have chosen to start using the CUDA.NET from GASS. I’ve installed al the drivers for CUDA(2.1) and the toolkit and SDK.
I’ve done the starting guide for a project but when I try to build the project he gives the following error:

Error 1 The command “nvcc.exe --cubin” exited with code -1. project_CUDANET

(project_CUDANET is the project in which I’m working, is the .cu file for the GPU).
The file is empty for now. The main .cs file contains only the code discribed in the starting guide.

The example’s give the same error. The CUDA example’s from the SDK and toolkit run fine and fast(around 40 fps for that green fluid example).

I’m running:
Core 2 Duo 2.0 Ghz, 2mb L2
Geforce 8600M GT 256Mb
3 gb ddr2

Visual studio 2008 team suite
Vista with al the updates
CUDA 2.1 drivers and toolkit and SDK.

Any help or solution?

Are you using C# or C++? I don’t think you can mix them in a single project (though I’m not really familiar with the GASS library).

I believe you can make a totally separate GPU project, compile to a .cubin or a DLL, then either interop with the unmanaged DLL, or use CUDA.NET to execute the .cubin file.

It’s completely in C# for the project and the the .cu file is in C++. And that should work. The Gass library works that way.

I was reading the build log and it gives this:
6>nvcc.exe --cubin
6>nvcc fatal : Cannot find compiler ‘cl.exe’ in PATH

The first line is added from the tutorial in the post-build.

I’ve what was wrong and found the solution. He couldn’t find cl.exe the nvcc compiler.

Changing the post-build command to:

nvcc -cubin --compiler-bindir=“C:\Program Files\Microsoft Visual Studio 9.0\VC\bin”

Did the trick.