Skip to content

Commit

Permalink
Fix sync call
Browse files Browse the repository at this point in the history
  • Loading branch information
luraess committed Nov 10, 2023
1 parent de6c7b4 commit 07bf739
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/BoundaryConditions/field_boundary_conditions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function apply_boundary_conditions!(::Val{S}, ::Val{D},
end
worksize = maximum(sizes)
_apply_boundary_conditions!(backend(arch), 256, worksize)(Val(S), Val(D), grid, sizes, offsets, fields, conditions)
async || KernelAbstractions.synchronize(backend(arch))
async || Architectures.synchronize(arch)
return

Check warning on line 20 in src/BoundaryConditions/field_boundary_conditions.jl

View check run for this annotation

Codecov / codecov/patch

src/BoundaryConditions/field_boundary_conditions.jl#L17-L20

Added lines #L17 - L20 were not covered by tests
end

Expand Down
2 changes: 1 addition & 1 deletion src/KernelLaunch.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function launch!(arch::Architecture, grid::CartesianGrid, kernel::Pair{K,Args};
end
end

async || synchronize(arch.backend)
async || Architectures.synchronize(arch)
return

Check warning on line 57 in src/KernelLaunch.jl

View check run for this annotation

Codecov / codecov/patch

src/KernelLaunch.jl#L56-L57

Added lines #L56 - L57 were not covered by tests
end

Expand Down
2 changes: 1 addition & 1 deletion src/Utils/extrapolate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ function extrapolate!(A::Field; async=true)
kernel_extrapolate_x!(backend, 256, (size(A, 2) + 2, size(A, 3) + 2))(A, I[1], N[1])
kernel_extrapolate_y!(backend, 256, (size(A, 1) + 2, size(A, 3) + 2))(A, I[2], N[2])
kernel_extrapolate_z!(backend, 256, (size(A, 1) + 2, size(A, 2) + 2))(A, I[3], N[3])
async || synchronize(backend)
async || KernelAbstractions.synchronize(backend)
return

Check warning on line 49 in src/Utils/extrapolate.jl

View check run for this annotation

Codecov / codecov/patch

src/Utils/extrapolate.jl#L45-L49

Added lines #L45 - L49 were not covered by tests
end

0 comments on commit 07bf739

Please sign in to comment.