MCPcopy Create free account
hub / github.com/clMathLibraries/clFFT / getPlan

Method getPlan

src/library/repo.cpp:333–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331}
332
333clfftStatus FFTRepo::getPlan( clfftPlanHandle plHandle, FFTPlan*& fftPlan, lockRAII*& planLock )
334{
335 scopedLock sLock( lockRepo, _T( "getPlan" ) );
336
337 // First, check if we have already created a plan with this exact same FFTPlan
338 repoPlansType::iterator iter = repoPlans.find( plHandle );
339 if( iter == repoPlans.end( ) )
340 return CLFFT_INVALID_PLAN;
341
342 // If plan is valid, return fill out the output pointers
343 fftPlan = iter->second.first;
344 planLock = iter->second.second;
345
346 return CLFFT_SUCCESS;
347}
348
349clfftStatus FFTRepo::deletePlan( clfftPlanHandle* plHandle )
350{

Callers 15

clfftCreateDefaultPlanFunction · 0.80
clfftBakePlanFunction · 0.80
clfftCopyPlanFunction · 0.80
clfftDestroyPlanFunction · 0.80
clfftGetPlanBatchSizeFunction · 0.80
clfftSetPlanBatchSizeFunction · 0.80
clfftGetPlanContextFunction · 0.80
clfftGetPlanPrecisionFunction · 0.80
clfftSetPlanPrecisionFunction · 0.80
clfftGetPlanScaleFunction · 0.80
clfftSetPlanScaleFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected