Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
lzhangzz committed Nov 18, 2023
1 parent 649061a commit 323112b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/turbomind/models/llama/llama_kernels.cu
Original file line number Diff line number Diff line change
Expand Up @@ -717,22 +717,22 @@ void invokeIndexedCopyImpl(void** h_src_ptr,
indexedCopy<T><<<batch_size, 128, 0, st>>>(param);
}
};
if (count < 4) {
if (count <= 4) {
invoke(std::integral_constant<int, 4>{});
}
if (count < 8) {
if (count <= 8) {
invoke(std::integral_constant<int, 8>{});
}
else if (count < 16) {
else if (count <= 16) {
invoke(std::integral_constant<int, 16>{});
}
else if (count < 32) {
else if (count <= 32) {
invoke(std::integral_constant<int, 32>{});
}
else if (count < 64) {
else if (count <= 64) {
invoke(std::integral_constant<int, 64>{});
}
else if (count < 128) {
else if (count <= 128) {
invoke(std::integral_constant<int, 128>{});
}
else {
Expand Down

0 comments on commit 323112b

Please sign in to comment.