void GPUFFT(int n, Complex* indata, Complex* outdata)
{
int mem_size = sizeof(cufftComplex) * n;
cufftComplex * d_in;
cudaMalloc((void**)&d_in, mem_size);
cudaMemcpy(d_in, indata, mem_size,cudaMemcpyHostToDevice);
cufftHandle plan;
cufftPlan1d(&plan, n, CUFFT_C2C, 1);
cufftExecC2C(plan, d_in, d_in, CUFFT_FORWARD);
cudaMemcpy(outdata, d_in, mem_size,cudaMemcpyDeviceToHost);
cufftDestroy(plan);
cudaFree(d_in);
}
开发环境VS2005,
外部调用GPUFFT函数,但是发现plan的值根本没有变化,请是工程属性方面出了问题吗。。