multiple cu files VS2008

Hey, I want to have as follows:

func1.cu // here is defined device func1()
func2.cu // here is defined device func2()
kernel.cu // here is defined global kernel()

I use CUDA wizard for MS VS.
My problem is:

when I include func1.cu in kernel.cu compilator says “already defined” - it compiles fun1.cu 2 times…
when I make a header file with only declaration of device func1(); and include it in kernel.cu compilator says “non-inlined call found”…

The only solution I found is to exclude func1.cu and func2.cu from build… is there any other solution?

Hey, I want to have as follows:

func1.cu // here is defined device func1()
func2.cu // here is defined device func2()
kernel.cu // here is defined global kernel()

I use CUDA wizard for MS VS.
My problem is:

when I include func1.cu in kernel.cu compilator says “already defined” - it compiles fun1.cu 2 times…
when I make a header file with only declaration of device func1(); and include it in kernel.cu compilator says “non-inlined call found”…

The only solution I found is to exclude func1.cu and func2.cu from build… is there any other solution?

This seems to be the correct solution to me. Why do you want to build them if they are already included in kernel.cu?

This seems to be the correct solution to me. Why do you want to build them if they are already included in kernel.cu?

Hehe, just those small icons for files that are excluded from build make me angry :)

Anyway I will stay with that…

Hehe, just those small icons for files that are excluded from build make me angry :)

Anyway I will stay with that…