| 894 | } |
| 895 | |
| 896 | cublasMMWrapper::MatrixLayout cublasMMWrapper::createMatrixLayout(cublasLtMatrixLayout_t Mdesc) |
| 897 | { |
| 898 | size_t returnSize; |
| 899 | MatrixLayout m_layout; |
| 900 | |
| 901 | cublasLtMatrixLayoutGetAttribute( |
| 902 | Mdesc, CUBLASLT_MATRIX_LAYOUT_TYPE, &std::get<0>(m_layout), sizeof(std::get<0>(m_layout)), &returnSize); |
| 903 | cublasLtMatrixLayoutGetAttribute( |
| 904 | Mdesc, CUBLASLT_MATRIX_LAYOUT_ORDER, &std::get<1>(m_layout), sizeof(std::get<1>(m_layout)), &returnSize); |
| 905 | cublasLtMatrixLayoutGetAttribute( |
| 906 | Mdesc, CUBLASLT_MATRIX_LAYOUT_ROWS, &std::get<2>(m_layout), sizeof(std::get<2>(m_layout)), &returnSize); |
| 907 | cublasLtMatrixLayoutGetAttribute( |
| 908 | Mdesc, CUBLASLT_MATRIX_LAYOUT_COLS, &std::get<3>(m_layout), sizeof(std::get<3>(m_layout)), &returnSize); |
| 909 | |
| 910 | return m_layout; |
| 911 | } |
| 912 | |
| 913 | cublasStatus_t cublasMMWrapper::cublasLtMatmulWrapper(cublasLtHandle_t lightHandle, |
| 914 | cublasLtMatmulDesc_t computeDesc, |
nothing calls this directly
no outgoing calls
no test coverage detected