Revert "ggml-cuda : add explicit casts to -INFINITY for float and half2 types"

This reverts commit a2839b4404.

Reverting this as after closer inspection these only warnings and not
errors.
This commit is contained in:
Daniel Bevenius 2026-05-14 05:28:56 +02:00 committed by Georgi Gerganov
parent db7bcdb791
commit 5a24c7538f
1 changed files with 2 additions and 2 deletions

View File

@ -582,9 +582,9 @@ template <typename T> struct block_reduce_policy<block_reduce_method::MAX, T> {
static __device__ T sentinel() {
if constexpr (std::is_same_v<T, float>) {
return -(float)INFINITY;
return -INFINITY;
} else if constexpr (std::is_same_v<T, half2>) {
return make_half2(__float2half(-(float)INFINITY), __float2half(-(float)INFINITY));
return make_half2(-INFINITY, -INFINITY);
} else {
static_assert(ggml_cuda_dependent_false_v<T>, "Unsupported type for block reduce max");
}