One bug and one bugish

parent 28350313
......@@ -105,9 +105,9 @@ Base.:+(a::M3x3{T},b::M3x3{T}) where T <: AbstractFloat = M3x3{T}(a.u11+b.u11, a
a.u21+b.u21, a.u22+b.u22, a.u23+b.u23,
a.u31+b.u31, a.u32+b.u32, a.u33+b.u33)
Base.:-(a::M3x3{T},b::M3x3{T}) where T <: AbstractFloat = M3x3{T}(a.u11-b.u11, a.u12-b.u12, a.u13-b-u13,
a.u21-b.u21, a.u22-b.u22, a.u23-b-u23,
a.u31-b.u31, a.u32-b.u32, a.u33-b-u33)
Base.:-(a::M3x3{T},b::M3x3{T}) where T <: AbstractFloat = M3x3{T}(a.u11-b.u11, a.u12-b.u12, a.u13-b.u13,
a.u21-b.u21, a.u22-b.u22, a.u23-b.u23,
a.u31-b.u31, a.u32-b.u32, a.u33-b.u33)
Base.:-(b::M3x3{T}) where T <: AbstractFloat = M3x3{T}(-b.u11, -b.u12, -b.u13,
-b.u21, -b.u22, -b.u23,
......
......@@ -24,7 +24,7 @@ function krnl_dot!(sum,fone,ftwo)
return nothing
end
function field_dot(fone::CuArray{Spinor{4, SU3fund{T}}},ftwo::CuArray{Spinor{4, SU3fund{T}}},sumf,lp) where {T}
function field_dot(fone::AbstractArray,ftwo::AbstractArray,sumf,lp) where {T}
CUDA.@sync begin
CUDA.@cuda threads=lp.bsz blocks=lp.rsz krnl_dot!(sumf,fone,ftwo)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment