MCPcopy Create free account
hub / github.com/clMathLibraries/clBLAS / getMasterStep

Function getMasterStep

src/library/tools/ktest/main.cpp:206–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206clMath::Step* getMasterStep(
207 BlasFunctionID funcID,
208 std::string platformName,
209 std::string deviceName)
210{
211 cl_platform_id platformID;
212 cl_device_id deviceID;
213
214 platformID = getPlatform(platformName.c_str());
215 deviceID = getDevice(platformID, deviceName.c_str());
216
217 switch (funcID) {
218 case CLBLAS_GEMV:
219 return new clMath::GemvStep(deviceID);
220 case CLBLAS_SYMV:
221 return new clMath::SymvStep(deviceID);
222 case CLBLAS_GEMM:
223 return new clMath::GemmStep(deviceID);
224 case CLBLAS_TRMM:
225 return new clMath::TrmmStep(deviceID);
226 case CLBLAS_TRSM:
227 return new clMath::TrsmStep(deviceID);
228 case CLBLAS_SYRK:
229 return new clMath::SyrkStep(deviceID);
230 case CLBLAS_SYR2K:
231 return new clMath::Syr2kStep(deviceID);
232 default:
233 return NULL;
234 }
235}
236
237clMath::Step* getStep(ListNode *node)
238{

Callers 1

mainFunction · 0.85

Calls 2

getPlatformFunction · 0.70
getDeviceFunction · 0.70

Tested by

no test coverage detected