when i use the cufft library to find fft of N point data using the built in API { cufftHandle plan; cufftPlan1d(&plan, N, CUFFT_C2C, 1);
cufftExecC2C(plan, (cufftComplex *)d_signal, (cufftComplex *)d_signal, CUFFT_FORWARD);}
it works perfectly well when called from main() function.but when same is called from device function it gives error
“error: calling a host function from a device/global function is not allowed”.if some one kindly help me resolving the same.thanks