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

Function clfftSetPlanScale

src/library/accessors.cpp:128–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128clfftStatus clfftSetPlanScale( clfftPlanHandle plHandle, clfftDirection dir, cl_float scale )
129{
130 FFTRepo& fftRepo = FFTRepo::getInstance( );
131 FFTPlan* fftPlan = NULL;
132 lockRAII* planLock = NULL;
133
134 OPENCL_V( fftRepo.getPlan( plHandle, fftPlan, planLock ), _T( "fftRepo.getPlan failed" ) );
135 scopedLock sLock( *planLock, _T( "clfftSetPlanScale" ) );
136
137 if( dir >= ENDDIRECTION )
138 return CLFFT_INVALID_ARG_VALUE;
139
140 // If we modify the state of the plan, we assume that we can't trust any pre-calculated contents anymore
141 fftPlan->baked = false;
142
143 if( dir == CLFFT_FORWARD || dir == CLFFT_MINUS )
144 fftPlan->forwardScale = scale;
145 else
146 fftPlan->backwardScale = scale;
147
148 return CLFFT_SUCCESS;
149}
150
151clfftStatus clfftGetPlanDim( const clfftPlanHandle plHandle, clfftDim* dim, cl_uint* size )
152{

Callers 5

transformFunction · 0.85
TEST_FFunction · 0.85
forward_scaleMethod · 0.85
backward_scaleMethod · 0.85
clAmdFftSetPlanScaleFunction · 0.85

Calls 1

getPlanMethod · 0.80

Tested by 3

TEST_FFunction · 0.68
forward_scaleMethod · 0.68
backward_scaleMethod · 0.68