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

Function selectAction

src/library/plan.cpp:401–439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

399
400
401clfftStatus selectAction(FFTPlan * fftPlan, FFTAction *& action, cl_command_queue* commQueueFFT)
402{
403 // set the action we are baking a leaf
404 clfftStatus err;
405
406 switch (fftPlan->gen)
407 {
408 case Stockham:
409 {
410 // Instantiate the default stockham generator
411 action = new FFTGeneratedStockhamAction (fftPlan->plHandle, fftPlan, *commQueueFFT, err);
412 OPENCL_V( err, "FFTGeneratedStockhamAction() failed");
413 }
414 break;
415
416 case Transpose_GCN:
417 {
418 action = new FFTGeneratedTransposeGCNAction(fftPlan->plHandle, fftPlan, *commQueueFFT, err);
419 OPENCL_V( err, "FFTGeneratedTransposeGCNAction() failed");
420 }
421 break;
422
423
424 case Copy:
425 {
426 action = new FFTGeneratedCopyAction (fftPlan->plHandle, fftPlan, *commQueueFFT, err);
427 OPENCL_V( err, "FFTGeneratedCopyAction() failed");
428 }
429 break;
430
431 default:
432 {
433 assert(false);
434 OPENCL_V( CLFFT_NOTIMPLEMENTED, "selectAction() failed");
435 }
436 }
437
438 return CLFFT_SUCCESS;
439}
440
441
442inline size_t PrecisionWidth(clfftPrecision pr)

Callers 1

clfftBakePlanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected