| 53 | } |
| 54 | |
| 55 | clfftStatus 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 | |
| 68 | clfftStatus clfftGetPlanPrecision( const clfftPlanHandle plHandle, clfftPrecision* precision ) |
| 69 | { |