Converts an af_mat_prop options to a transpose type for one of the OpenCL BLAS back-ends
| 38 | // Converts an af_mat_prop options to a transpose type for one of the OpenCL |
| 39 | // BLAS back-ends |
| 40 | OPENCL_BLAS_TRANS_T |
| 41 | toBlasTranspose(af_mat_prop opt) { |
| 42 | switch (opt) { |
| 43 | case AF_MAT_NONE: return OPENCL_BLAS_NO_TRANS; |
| 44 | case AF_MAT_TRANS: return OPENCL_BLAS_TRANS; |
| 45 | case AF_MAT_CTRANS: return OPENCL_BLAS_CONJ_TRANS; |
| 46 | default: AF_ERROR("INVALID af_mat_prop", AF_ERR_ARG); |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | template<typename T> |
| 51 | void gemm_fallback(Array<T> &out, af_mat_prop optLhs, af_mat_prop optRhs, |