MCPcopy Create free account
hub / github.com/NVIDIA/FasterTransformer / createMatrixLayout

Method createMatrixLayout

src/fastertransformer/utils/cublasMMWrapper.cc:896–911  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

894}
895
896cublasMMWrapper::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
913cublasStatus_t cublasMMWrapper::cublasLtMatmulWrapper(cublasLtHandle_t lightHandle,
914 cublasLtMatmulDesc_t computeDesc,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected