Skip to content

Commit

Permalink
tropical FPU fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wardvermeulen committed Oct 12, 2023
1 parent 6af8b25 commit a1eb042
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 a1eb042

Please sign in to comment.