Skip to content

Commit fdb9327

Browse files
committed
remove redundant !defined(GGML_USE_HIP)
1 parent cc85157 commit fdb9327

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ggml/src/ggml-cuda/common.cuh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,9 +466,9 @@ static __device__ __forceinline__ half ggml_cuda_hmax(const half a, const half b
466466
static __device__ __forceinline__ half2 ggml_cuda_hmax2(const half2 a, const half2 b) {
467467
#if defined(GGML_USE_HIP)
468468
return half2(__hmax(a.x, b.x), __hmax(a.y, b.y));
469-
#elif !defined(GGML_USE_HIP) && CUDART_VERSION >= CUDART_HMAX
469+
#elif CUDART_VERSION >= CUDART_HMAX
470470
return __hmax2(a, b);
471-
#elif !defined(GGML_USE_HIP)
471+
#else
472472
half2 ret;
473473
reinterpret_cast<half&>(ret.x) = __float2half(fmaxf( __low2float(a), __low2float(b)));
474474
reinterpret_cast<half&>(ret.y) = __float2half(fmaxf(__high2float(a), __high2float(b)));

0 commit comments

Comments
 (0)