Skip to content

Commit

Permalink
increase granularity of measurement
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrKryslUCSD committed Feb 11, 2024
1 parent 5b70935 commit d5273aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/steady_state/3-d/Poisson_examples.jl
Original file line number Diff line number Diff line change
Expand Up @@ -321,11 +321,13 @@ function Poisson_FE_H20_parass_tasks_example(N = 25, ntasks = Base.Threads.nthr
push!(_b, buffer_range)
end
a.buffer_pointer = iend # It is very important to inform the assembly buffer where the data are
@info "Prepare ranges $(time() - start)"
Threads.@threads for j in eachindex(_ch)
ch = _ch[j]; b = _b[j]
push!(_fa, (FEMMHeatDiff(IntegDomain(subset(fes, ch[1]), GaussRule(3, 3)), material),
_task_local_assembler(a, b)))
end
@info "Prepare FEMMs, local assemblers $(time() - start)"
Threads.@sync begin
for (ch1, (f1, a1)) in zip(_ch, _fa)
@info "$(ch1[2]): Started $(time() - start)"
Expand Down

0 comments on commit d5273aa

Please sign in to comment.