File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ Function to compute transport.
181181- `U`: transport value
182182"""
183183function compute_transport (rho, params)
184- (; delta, u0) = params
184+ (; delta, u0) = params
185185 U = u0 * (rho[2 ] - (delta * rho[1 ] + (1 - delta) * rho[3 ]))
186186 return U
187187end
Original file line number Diff line number Diff line change @@ -5634,16 +5634,16 @@ end
56345634 )
56355635 )
56365636
5637- size = Compiler. datatype_layoutsize (jTy)
5637+ size = Compiler. datatype_layoutsize (jTy)
56385638 if offset < size && isa (sz, LLVM. ConstantInt) && size - offset >= convert (Int, sz)
56395639 lim = convert (Int, sz)
56405640 md = to_fullmd (jTy, offset, lim)
56415641 @assert byref == GPUCompiler. BITS_REF ||
56425642 byref == GPUCompiler. MUT_REF
56435643 metadata (inst)[" enzyme_truetype" ] = md
5644- elseif byref == GPUCompiler. BITS_VALUE && jTy <: Ptr && eltype (jTy) == Any
5645- # TODO generalize this
5646- md = to_fullmd (jTy, 0 , sizeof (Ptr{Cvoid}))
5644+ elseif byref == GPUCompiler. BITS_VALUE && jTy <: Ptr && eltype (jTy) == Any
5645+ # TODO generalize this
5646+ md = to_fullmd (jTy, 0 , sizeof (Ptr{Cvoid}))
56475647 metadata (inst)[" enzyme_truetype" ] = md
56485648 end
56495649 end
You can’t perform that action at this time.
0 commit comments