Reputation: 11
When calling cufftPlanMany() the first time, it takes about 0.7 sec, but all next calls are fast. Any idea how to accelerate the first call of cufftPlanMany()?
Upvotes: 1
Views: 681
Reputation: 359
First call to cufftPlanMany causes libcufft.so to be loaded. This in turns initalizes cuda context if needed and loads all the kernels. It would always take some time depending on the size of the library. 0.7 of a second is a bit excessive and it will be reduced in next version of cuFFT. We also reduced time of each subsequent cufftPlan* function a bit.
Why do you need low initialization time?
Upvotes: 1