Skip to content

Commit

Permalink
tropical FPU fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wardvermeulen authored and thomasfaingnaert committed Oct 24, 2023
1 parent 82bc0d2 commit 530b7a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/operator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ function operator_fma(::Type{FPUOp{M, N, K, mb, nb, kb, CT, AT}}, a::CT, b::CT,
return fma(a, b, c)
end

abstract type TropicalFPUOp{M, N, K, CT, AT} <: GeneralFPUOp{M, N, K, 4, 8, 1, CT, AT} end
function operator_fma(::Type{TropicalFPUOp{M, N, K, CT, AT}}, a::CT, b::CT, c::AT) where {M, N, K, CT, AT}
abstract type TropicalFPUOp{M, N, K, mb, nb, kb, CT, AT} <: GeneralFPUOp{M, N, K, mb, nb, kb, CT, AT} end
function operator_fma(::Type{TropicalFPUOp{M, N, K, mb, nb, kb, CT, AT}}, a::CT, b::CT, c::AT) where {M, N, K, mb, nb, kb, CT, AT}
return max(a + b, c)
end

Expand Down

0 comments on commit 530b7a7

Please sign in to comment.