Hello,
first post from a longtime lurker. :biggrin:
After a couple of very basic tests with CUDA, I stepped up working with CUDAFFT (which is my real target).
I’m running Win XP SP2 with CUDA 1.1 final; I use VisualStudio 2005.
Drivers are 169.09.
Card is a 8800 GTS (G92) with 512MB of RAM.
CPU is an Intel Core2 Quad Q6600, 4GB of RAM.
I’m having problems when trying to execute cufftPlan2d().
My code snippet (core function only to keep it short):
int mycufft (int mode, float *in_re, float *in_im, float *out_re, float *out_im, unsigned int size)
{
cufftComplex *deviceFC1 = NULL, *deviceFC2 = NULL,
*hostFC1 = NULL, *hostFC2 = NULL;
cufftHandle FPPlan;
int i, samples;
if ( (in_re == NULL)||(in_im == NULL)||(out_re == NULL)||(out_im == NULL) )
return 1;
samples = size * size;
cudaMalloc ((void **) &deviceFC1, samples*sizeof(cufftComplex));
cudaMalloc ((void **) &deviceFC2, samples*sizeof(cufftComplex));
if ( (deviceFC1 == NULL)||(deviceFC2 == NULL) )
return 2;
CUDA_SAFE_CALL (FPPlan = cufftPlan2d (&FPPlan, size, size, CUFFT_C2C));
if (FPPlan == NULL)
{
cudaFree (deviceFC1);
cudaFree (deviceFC2);
return 3;
}
:
:
:
When execution reaches cufftPlan2d(), I get this error:
cufft: ERROR: C:/cygwin/home/cuda0/cuda/sw/gpgpu_rel1.1/cufft/src/plan.cu, line 41
cufft: ERROR: CUFFT_INTERNAL_ERROR
Cuda initialization (before calling the function) goes well.
DeviceQuery returns:
D:\GPUProgramming\CUDA\CUDA-SDK\bin\win32\Release>deviceQuery.exe
There is 1 device supporting CUDA
Device 0: "GeForce 8800 GTS 512"
Major revision number: 1
Minor revision number: 1
Total amount of global memory: 536543232 bytes
Total amount of constant memory: 65536 bytes
Total amount of shared memory per block: 16384 bytes
Total number of registers available per block: 8192
Warp size: 32
Maximum number of threads per block: 512
Maximum sizes of each dimension of a block: 512 x 512 x 64
Maximum sizes of each dimension of a grid: 65535 x 65535 x 1
Maximum memory pitch: 262144 bytes
Texture alignment: 256 bytes
Clock rate: 1620000 kilohertz
Test PASSED
Press ENTER to exit...
Any help would be much appreciated!
** Please note I can build and run all of the CUDA SDK examples without problems. **
Thanks for your patience,
XFer