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

Method CopyKernel

src/library/generator.copy.cpp:127–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125
126 public:
127 CopyKernel( const FFTGeneratedCopyAction::Signature &paramsVal) :
128 params(paramsVal)
129
130 {
131 N = params.fft_N[0];
132 Nt = 1 + N/2;
133
134 h2c = ( (params.fft_inputLayout == CLFFT_HERMITIAN_PLANAR) ||
135 (params.fft_inputLayout == CLFFT_HERMITIAN_INTERLEAVED) ) ? true : false;
136 c2h = ( (params.fft_outputLayout == CLFFT_HERMITIAN_PLANAR) ||
137 (params.fft_outputLayout == CLFFT_HERMITIAN_INTERLEAVED) ) ? true : false;
138
139 general = !(h2c || c2h);
140
141 // We only do out-of-place copies at this point
142 assert(params.fft_placeness == CLFFT_OUTOFPLACE);
143 }
144
145 void GenerateKernel(std::string &str)
146 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected