| 149 | } |
| 150 | |
| 151 | clfftStatus clfftGetPlanDim( const clfftPlanHandle plHandle, clfftDim* dim, cl_uint* size ) |
| 152 | { |
| 153 | FFTRepo& fftRepo = FFTRepo::getInstance( ); |
| 154 | FFTPlan* fftPlan = NULL; |
| 155 | lockRAII* planLock = NULL; |
| 156 | |
| 157 | OPENCL_V( fftRepo.getPlan( plHandle, fftPlan, planLock ), _T( "fftRepo.getPlan failed" ) ); |
| 158 | scopedLock sLock( *planLock, _T( "clfftGetPlanDim" ) ); |
| 159 | |
| 160 | *dim = fftPlan->dim; |
| 161 | |
| 162 | switch( fftPlan->dim ) |
| 163 | { |
| 164 | case CLFFT_1D: |
| 165 | { |
| 166 | *size = 1; |
| 167 | } |
| 168 | break; |
| 169 | case CLFFT_2D: |
| 170 | { |
| 171 | *size = 2; |
| 172 | } |
| 173 | break; |
| 174 | case CLFFT_3D: |
| 175 | { |
| 176 | *size = 3; |
| 177 | } |
| 178 | break; |
| 179 | default: |
| 180 | return CLFFT_NOTIMPLEMENTED; |
| 181 | break; |
| 182 | } |
| 183 | |
| 184 | return CLFFT_SUCCESS; |
| 185 | } |
| 186 | |
| 187 | clfftStatus clfftSetPlanDim( clfftPlanHandle plHandle, const clfftDim dim ) |
| 188 | { |