Skip to content

Commit

Permalink
Added missing newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianTrommer committed Jul 22, 2024
1 parent b42e054 commit c8a815f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/forward_diff_kernels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ function copy_dual_to_matrix_kernel(
src[loc...] = dst[loc[1:(end - 1)]...].partials[loc[end] - 1]
end
end

return nothing
end

Expand Down Expand Up @@ -149,5 +150,6 @@ function dual_kernel(dst::CuDeviceArray{<:Dual{T, V, N}}, v::CuDeviceArray{V},
loc = Tuple(ci[index])
dst[loc...] = Dual{T, V, N}(v[loc...], Partials{N, V}(src[loc...]))
end

return nothing
end

0 comments on commit c8a815f

Please sign in to comment.