Skip to content

Commit

Permalink
Update failing benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
utkinis committed Oct 23, 2023
1 parent 38310e8 commit f1528fc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts_future_API/benchmark_diffusion_2D.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function diffusion_2D(ka_backend=CPU())
lx, ly = 10.0, 10.0
dc = 1
# numerics
nx, ny = 10, 10
nx, ny = 32, 32
nt = 500
# preprocessing
grid = CartesianGrid(; origin=(-0.5lx, -0.5ly),
Expand Down Expand Up @@ -81,7 +81,7 @@ function diffusion_2D(ka_backend=CPU())
if global_rank(topology) == 0
anim = Animation()
end
for it in 1:5
for it in 1:nt
if global_rank(topology) == 0
println("it = $it")
end
Expand All @@ -93,9 +93,9 @@ function diffusion_2D(ka_backend=CPU())
end
launch!(arch, grid, update_C! => (C, qC, dt, Δ); location=Center(), expand=1)
Architectures.synchronize(arch)
sleep(0.5global_rank(topology))
@show coordinates(topology)
display(parent(C))
# sleep(0.5global_rank(topology))
# @show coordinates(topology)
# display(parent(C))
# update_C!(ka_backend, 256, (nx+2, ny+2))(C, qC, dt, Δ, -CartesianIndex(1,1))
# launch!(arch, grid, update_qC! => (qC, C, dc, Δ); location=Vertex(), hide_boundaries, boundary_conditions=bc_q, outer_width)
MPI.Barrier(cartesian_communicator(topology))
Expand Down

0 comments on commit f1528fc

Please sign in to comment.