Skip to content

Commit

Permalink
running after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
leios committed Sep 27, 2024
1 parent 6b7ef49 commit c973250
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/kernels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ end
function pairwise_force_gpu(coords::AbstractArray{SVector{D, C}}, atoms, boundary,

Check warning on line 17 in src/kernels.jl

View check run for this annotation

Codecov / codecov/patch

src/kernels.jl#L17

Added line #L17 was not covered by tests
pairwise_inters, nbs, force_units, ::Val{T}) where {D, C, T}
backend = get_backend(coords)
fs_mat = KernelAbstractions.zeros(backend, D, length(atoms))
n_threads_gpu, n_blocks = gpu_threads_blocks_pairwise(length(nbs))
fs_mat = KernelAbstractions.zeros(backend, T, D, length(atoms))
n_threads_gpu = gpu_threads_blocks_pairwise(length(nbs))
kernel! = pairwise_force_kernel!(backend, n_threads_gpu)
kernel!(fs_mat, coords, atoms, boundary, pairwise_inters, nbs,

Check warning on line 23 in src/kernels.jl

View check run for this annotation

Codecov / codecov/patch

src/kernels.jl#L19-L23

Added lines #L19 - L23 were not covered by tests
Val(D), Val(force_units), ndrange = length(nbs))
Expand Down Expand Up @@ -49,8 +49,8 @@ end
end
for dim in 1:D
fval = ustrip(f[dim])
Atomix.@atomic :monotonic forces[dim, i] += -fval
Atomix.@atomic :monotonic forces[dim, j] += fval
Atomix.@atomic forces[dim, i] = forces[dim, i] - fval
Atomix.@atomic forces[dim, j] = forces[dim, j] + fval
end

Check warning on line 54 in src/kernels.jl

View check run for this annotation

Codecov / codecov/patch

src/kernels.jl#L50-L54

Added lines #L50 - L54 were not covered by tests
end
end
Expand Down

0 comments on commit c973250

Please sign in to comment.