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

Method FFTGeneratedCopyAction

src/library/generator.copy.cpp:24–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22#include "action.h"
23
24FFTGeneratedCopyAction::FFTGeneratedCopyAction(clfftPlanHandle plHandle, FFTPlan * plan, cl_command_queue queue, clfftStatus & err)
25 : FFTCopyAction(plHandle, plan, queue, err)
26{
27 if (err != CLFFT_SUCCESS)
28 {
29 // FFTCopyAction() failed, exit
30 fprintf(stderr, "FFTCopyAction() failed!\n");
31 return;
32 }
33
34 // Initialize the FFTAction::FFTKernelGenKeyParams member
35 err = this->initParams();
36
37 if (err != CLFFT_SUCCESS)
38 {
39 fprintf(stderr, "FFTGeneratedCopyAction::initParams() failed!\n");
40 return;
41 }
42
43 FFTRepo &fftRepo = FFTRepo::getInstance();
44
45 err = this->generateKernel(fftRepo, queue);
46
47 if (err != CLFFT_SUCCESS)
48 {
49 fprintf(stderr, "FFTGeneratedCopyAction::generateKernel failed\n");
50 return;
51 }
52
53 err = compileKernels( queue, plHandle, plan);
54
55 if (err != CLFFT_SUCCESS)
56 {
57 fprintf(stderr, "FFTGeneratedCopyAction::compileKernels failed\n");
58 return;
59 }
60
61 err = CLFFT_SUCCESS;
62}
63
64bool FFTGeneratedCopyAction::buildForwardKernel()
65{

Callers

nothing calls this directly

Calls 2

initParamsMethod · 0.95
generateKernelMethod · 0.95

Tested by

no test coverage detected