Skip to content

Commit

Permalink
Fix vector C offset computation logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
whchung committed Sep 18, 2020
1 parent 2467036 commit d9bd733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlir/include/mlir/Dialect/MIOpen/LowerMIOpenOps.h
Expand Up @@ -3433,7 +3433,7 @@ struct GridwiseGemmV2RewritePattern : public OpRewritePattern<miopen::GridwiseGe
int64_t NumBlks = NumBlksPerXdlops * MRepeats * NRepeats;

int64_t iterationsPerVectorC = NumBlks / vectorNumber;
int64_t vectorCoffset = vectorType.getShape()[0] / BlkSize;
int64_t vectorCoffset = vectorType.getShape()[0] / iterationsPerVectorC;

// llvm::errs() << "MPerWave: " << MPerWave << "\n";
// llvm::errs() << "NPerWave: " << NPerWave << "\n\n";
Expand Down

0 comments on commit d9bd733

Please sign in to comment.