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

Function clfftGetPlanContext

src/library/accessors.cpp:55–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55clfftStatus clfftGetPlanContext( const clfftPlanHandle plHandle, cl_context* context )
56{
57 FFTRepo& fftRepo = FFTRepo::getInstance( );
58 FFTPlan* fftPlan = NULL;
59 lockRAII* planLock = NULL;
60
61 OPENCL_V( fftRepo.getPlan( plHandle, fftPlan, planLock ), _T( "fftRepo.getPlan failed" ) );
62 scopedLock sLock( *planLock, _T( "clfftGetPlanContext" ) );
63
64 *context = fftPlan->context;
65 return CLFFT_SUCCESS;
66}
67
68clfftStatus clfftGetPlanPrecision( const clfftPlanHandle plHandle, clfftPrecision* precision )
69{

Callers 2

TEST_FFunction · 0.85
clAmdFftGetPlanContextFunction · 0.85

Calls 1

getPlanMethod · 0.80

Tested by 1

TEST_FFunction · 0.68