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:
parent
db7bcdb791
commit
5a24c7538f
|
|
@ -582,9 +582,9 @@ template <typename T> struct block_reduce_policy<block_reduce_method::MAX, T> {
|
||||||
|
|
||||||
static __device__ T sentinel() {
|
static __device__ T sentinel() {
|
||||||
if constexpr (std::is_same_v<T, float>) {
|
if constexpr (std::is_same_v<T, float>) {
|
||||||
return -(float)INFINITY;
|
return -INFINITY;
|
||||||
} else if constexpr (std::is_same_v<T, half2>) {
|
} else if constexpr (std::is_same_v<T, half2>) {
|
||||||
return make_half2(__float2half(-(float)INFINITY), __float2half(-(float)INFINITY));
|
return make_half2(-INFINITY, -INFINITY);
|
||||||
} else {
|
} else {
|
||||||
static_assert(ggml_cuda_dependent_false_v<T>, "Unsupported type for block reduce max");
|
static_assert(ggml_cuda_dependent_false_v<T>, "Unsupported type for block reduce max");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue