| 204 | } |
| 205 | |
| 206 | clMath::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 | |
| 237 | clMath::Step* getStep(ListNode *node) |
| 238 | { |
no test coverage detected