cufftCreate doesn't return a plan

I’m new in this issue and I have some problems. When I call to the function cufftCreate(&plan), it does not finish the call. In this way, the application does not end and plan value does not contain anything. It also occurs the same behavior when I call cufftPlan1d, cufftPlan2d, and so on.
Can anyone help me, please?