diff --git a/src/BoundaryConditions/field_boundary_conditions.jl b/src/BoundaryConditions/field_boundary_conditions.jl index 7803b718..d3d1fe65 100644 --- a/src/BoundaryConditions/field_boundary_conditions.jl +++ b/src/BoundaryConditions/field_boundary_conditions.jl @@ -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 end diff --git a/src/KernelLaunch.jl b/src/KernelLaunch.jl index 3278b46f..22c182c6 100644 --- a/src/KernelLaunch.jl +++ b/src/KernelLaunch.jl @@ -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 end diff --git a/src/Utils/extrapolate.jl b/src/Utils/extrapolate.jl index 314d7ff9..0a4a31b9 100644 --- a/src/Utils/extrapolate.jl +++ b/src/Utils/extrapolate.jl @@ -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 end