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

Function getKernelName

src/library/plan.cpp:372–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

370}
371
372std::string getKernelName(const clfftGenerators gen, const clfftPlanHandle plHandle, bool withPlHandle)
373{
374 // Logic to define a sensible filename
375 const std::string kernelPrefix( "clfft.kernel." );
376 std::string generatorName;
377 std::stringstream kernelPath;
378
379 switch( gen )
380 {
381
382 case Stockham: generatorName = "Stockham"; break;
383 case Transpose_GCN: generatorName = "Transpose"; break;
384 case Transpose_SQUARE: generatorName = "Transpose"; break;
385 case Transpose_NONSQUARE: generatorName = "TransposeNonSquare"; break;
386 case Copy: generatorName = "Copy"; break;
387
388 }
389
390 kernelPath << kernelPrefix << generatorName ;
391
392 if (withPlHandle)
393 kernelPath << plHandle;
394
395 kernelPath << ".cl";
396
397 return kernelPath.str();
398}
399
400
401clfftStatus selectAction(FFTPlan * fftPlan, FFTAction *& action, cl_command_queue* commQueueFFT)

Callers 2

FFTBinaryLookupMethod · 0.85
writeKernelMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected