CUda newbie.. invalid plan error

hi,

I have Cuda set up in the Visual studio 2005 environment with all the libraries included n stuff. I’m trying to execute a simple FFt program , the program below builds properly but when i run it i get an CUFFT_INTERNAL_ERROR…

[codebox]cufft: ERROR: C:/cygwin/home/cuda0/cuda/sw/gpgpu_rel1.1/cufft/src/config.cu, lin

e 106

cufft: ERROR: CUFFT_INTERNAL_ERROR

cufft: ERROR: C:/cygwin/home/cuda0/cuda/sw/gpgpu_rel1.1/cufft/src/cufft.cu, line

94

cufft: ERROR: CUFFT_INVALID_PLAN[/codebox]

my code is as below…

[codebox]#include <stdio.h>

#include <stdlib.h>

#include <string.h>

#include <cufft.h>

#include <cutil.h>

#define NX 256

int main(int argc, char **argv){

cufftHandle plan;

cufftPlan1d(&plan, NX, CUFFT_R2C, 10);

cufftDestroy(plan);

}[/codebox]

i have run CUDa programs before inside VIsual studio though none involving a FFT. However I was able to use FFt function when i was previously callin them from a MEx file in matlab. So i’m wondering whats causing this problem now inside visual studio. I have run DEviceQuery on my pc…I’m sure my graphics card supports NX>1024… so can someone please help me out…

thanks

Ash

I just compiled and ran your code. It executed with no problem. VS 2005, 8800 GTS, CUDA 2.1. Can you run the FFT examples in the SDK?