Skip to content

Commit 49483bc

Browse files
committed
fix build warning
1 parent 71a579a commit 49483bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

onnxruntime/contrib_ops/cuda/bert/xqa/mha_impl.cuh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2593,7 +2593,7 @@ __device__ __host__ inline size_t GetScratchSize(uint32_t nbSeq, uint32_t nbSubS
25932593
using ScratchBuf = Array2D<LdGrain, nbValidRows, SharedMem::XSmemBuffer::cols>;
25942594
using VecT = Vec<ScratchBuf, gemm1WarpsPerGrp>;
25952595

2596-
size_t sem_size = roundUp<size_t>(nbSeq * sizeof(uint32_t), 128);
2596+
// size_t sem_size = roundUp<size_t>(nbSeq * sizeof(uint32_t), 128);
25972597
// if (nbSubSeqPerSeq > 1) {
25982598
// printf("[MHA_IMPL] GetScratchSize: nbSeq=%u, nbSubSeqPerSeq=%u, sizeof(SMemWarpRowMax)=%zu, sizeof(VecT)=%zu, nbValidRows=%u, XS_cols=%u\n",
25992599
// nbSeq, nbSubSeqPerSeq, (size_t)sizeof(SMemWarpRowMax), (size_t)sizeof(VecT), (uint32_t)nbValidRows, (uint32_t)SharedMem::XSmemBuffer::cols);

0 commit comments

Comments
 (0)