Skip to content

Commit

Permalink
convert to col major
Browse files Browse the repository at this point in the history
  • Loading branch information
newling committed Jul 11, 2017
1 parent bff80c7 commit 78955d5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/gemm_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ extern "C" miopenStatus_t miopenGemm(miopenHandle_t handle,
void* C,
int ldc)
{

// JN make column major
if (isDataColMajor == false){
std::swap(M, N);
std::swap(lda, ldb);
std::swap(A, B);
isDataColMajor = true;
}

return miopen::try_([&] {
miopen::GemmGeometry gg =
miopen::CreateMIOpenGemmGeometry(M,
Expand Down

0 comments on commit 78955d5

Please sign in to comment.