Skip to content

Commit

Permalink
fix - fix cuda11 compile
Browse files Browse the repository at this point in the history
  • Loading branch information
rtp-llm authored and baowending.bwd committed Apr 21, 2024
1 parent fb42763 commit d10c98c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fastertransformer/kernels/quantization_tensor.cu
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ __global__ void perTokenQuantization(
T localMax = 1e-6f;
for (int i = threadIdx.x; i < numCols; i += blockDim.x)
{
localMax = cuda_max(localMax, cuda_abs((srcRow[i])/ cuda_cast<T>(smoother[i])));
localMax = cuda_max(localMax, cuda_abs(cuda_cast<T>((srcRow[i])/ cuda_cast<T>(smoother[i]))));
}
const float rowMax = blockAllReduceMax(cuda_cast<float>(localMax));

Expand Down

0 comments on commit d10c98c

Please sign in to comment.