This external entry-point should not be called from within the library. Use clfftCreateDefaultPlanInternal instead.
| 351 | |
| 352 | // This external entry-point should not be called from within the library. Use clfftCreateDefaultPlanInternal instead. |
| 353 | clfftStatus clfftCreateDefaultPlan( clfftPlanHandle* plHandle, cl_context context, const clfftDim dim, |
| 354 | const size_t* clLengths ) |
| 355 | { |
| 356 | clfftStatus ret = clfftCreateDefaultPlanInternal(plHandle, context, dim, clLengths); |
| 357 | |
| 358 | if(ret == CLFFT_SUCCESS) |
| 359 | { |
| 360 | FFTRepo& fftRepo = FFTRepo::getInstance( ); |
| 361 | FFTPlan *fftPlan = NULL; |
| 362 | lockRAII* planLock = NULL; |
| 363 | OPENCL_V( fftRepo.getPlan( *plHandle, fftPlan, planLock ), _T( "fftRepo.getPlan failed" ) ); |
| 364 | |
| 365 | fftPlan->userPlan = true; |
| 366 | } |
| 367 | |
| 368 | return ret; |
| 369 | |
| 370 | } |
| 371 | |
| 372 | std::string getKernelName(const clfftGenerators gen, const clfftPlanHandle plHandle, bool withPlHandle) |
| 373 | { |