Skip to content

Commit

Permalink
Fix ROCm compile
Browse files Browse the repository at this point in the history
  • Loading branch information
turboderp committed Feb 24, 2024
1 parent 67af1d1 commit 2586566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exllamav2/exllamav2_ext/cuda/q_mlp.cu
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ __device__ __forceinline__ half gelu(half x)

__device__ __forceinline__ half2 gelu(half2 x)
{
return __halves2half2(gelu(x.x), gelu(x.y));
return __halves2half2(gelu(__low2half(x)), gelu(__high2half(x)));
}

typedef void (*fp_silu_mul_kernel)
Expand Down

0 comments on commit 2586566

Please sign in to comment.