CUda newbie.. invalid plan error


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/, lin

e 106


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


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);



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…



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?