Hi,
I’m working on a Windows 7 64bit + GTX 460 with Visual Studio 2010, C# project, Dot.Net framework 4.0.
I worked with CUDA 3.0 and upgraded to 3.2 (32bit)
I tried to do a simple FFT test with the new framework and while it worked under 3.0, under 3.2 there seems to be some problems already in the plan creation stage.
This is how I import the function:
[DllImport("cufft32_32_16.dll")]
public static extern CUFFTResult cufftPlanMany(ref cufftHandle plan, int rank, [In, Out] int[] n, IntPtr inembed, int istride, int idist, IntPtr onembed, int ostride, int odist, CUFFTType type, int batch);
And this is how I try to generate a plan:
int[] R = new int[1];
R[0] = 128;
this.LastError = CUFFTDriver.cufftPlanMany(ref plan,
1,
R,
IntPtr.Zero, 1, 0,
IntPtr.Zero, 1, 0,
CUFFTType.C2C,
batch);
This is cufftHandle:
[StructLayout(LayoutKind.Sequential)]
public struct cufftHandle
{
public uint handle;
}
The above code worked fine under CUDA 3.0 but doesn’t work under CUDA 3.2. No exceptions are thrown and the system just gets stuck when executing cufftPlanMany.
All the functions under nvcuda32 seems to work fine…
Any help would be appreciated.
Gilad.