Skip to content

Commit 2586566

Browse files
committed
Fix ROCm compile
1 parent 67af1d1 commit 2586566

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exllamav2/exllamav2_ext/cuda/q_mlp.cu

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ __device__ __forceinline__ half gelu(half x)
5555

5656
__device__ __forceinline__ half2 gelu(half2 x)
5757
{
58-
return __halves2half2(gelu(x.x), gelu(x.y));
58+
return __halves2half2(gelu(__low2half(x)), gelu(__high2half(x)));
5959
}
6060

6161
typedef void (*fp_silu_mul_kernel)

0 commit comments

Comments
 (0)