MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / toBlasTranspose

Function toBlasTranspose

src/backend/opencl/blas.cpp:40–48  ·  view source on GitHub ↗

Converts an af_mat_prop options to a transpose type for one of the OpenCL BLAS back-ends

Source from the content-addressed store, hash-verified

38// Converts an af_mat_prop options to a transpose type for one of the OpenCL
39// BLAS back-ends
40OPENCL_BLAS_TRANS_T
41toBlasTranspose(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
50template<typename T>
51void gemm_fallback(Array<T> &out, af_mat_prop optLhs, af_mat_prop optRhs,

Callers 1

gemmFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected