Invalid plan flag in cufft ?


is there any value for a cufftHandle that indicates that the plan is not valid ? Something like a constant NOT_A_VALID_PLAN would be nice, then a plan can be tested for that,

if (plan == NOT_A_VALID_PLAN)
plan = cufftPlan1d(…);;

Can’t find such a thing in the manual :-(

Thanks in advance,


Maybe, but you should really check the cufftResult returned by the planner function e.g. cufftPlan1d for a value of CUFFT_SUCCESS. Anything else indicates an error.