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

Method getProgramCode

src/library/repo.cpp:146–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146clfftStatus FFTRepo::getProgramCode( const clfftGenerators gen, const FFTKernelSignatureHeader * data, std::string& kernel, const cl_device_id &device, const cl_context& planContext )
147{
148 scopedLock sLock( lockRepo, _T( "getProgramCode" ) );
149
150 FFTRepoKey key(gen, data, planContext, device);
151
152 fftRepo_iterator pos = mapFFTs.find( key);
153 if( pos == mapFFTs.end( ) )
154 return CLFFT_FILE_NOT_FOUND;
155
156 kernel = pos->second.ProgramString;
157 return CLFFT_SUCCESS;
158}
159
160clfftStatus FFTRepo::setProgramEntryPoints( const clfftGenerators gen, const FFTKernelSignatureHeader * data,
161 const char * kernel_fwd, const char * kernel_back, const cl_device_id &device, const cl_context& planContext )

Callers 2

writeKernelMethod · 0.80
compileKernelsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected