cufft on device how to call cufft library function from device function

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

CUFFT is a host side library only. You cannot presently call it from device code.

how can i find fft using cufft library from device or thru any other method