Building SDK4.1 on win7-32 and 64bit with visual studio 2010 and Cuda4.1
In debug build I get an error building the bicubic texture sample
\bicubicTexture\bicubicTexture_kernel.cuh(104): Texture/surface reference must be simple name
Where the offending line is:
return cubicFilter<R>(fy,
cubicFilter<R>(fx, tex2D(texref, px-1, py-1), tex2D(texref, px, py-1), tex2D(texref, px+1, py-1), tex2D(texref, px+2,py-1)),
cubicFilter<R>(fx, tex2D(texref, px-1, py), tex2D(texref, px, py), tex2D(texref, px+1, py), tex2D(texref, px+2, py)),
cubicFilter<R>(fx, tex2D(texref, px-1, py+1), tex2D(texref, px, py+1), tex2D(texref, px+1, py+1), tex2D(texref, px+2, py+1)),
cubicFilter<R>(fx, tex2D(texref, px-1, py+2), tex2D(texref, px, py+2), tex2D(texref, px+1, py+2), tex2D(texref, px+2, py+2))
);
The .cuh file is identical to that in 4.0 sdk so it must be some other cuda change.
Any ideas?