Skip to content

WIP: Allow muli-threading on dd, parallelizing in time#51

Open
orso82 wants to merge 20 commits intomasterfrom
threaded_time
Open

WIP: Allow muli-threading on dd, parallelizing in time#51
orso82 wants to merge 20 commits intomasterfrom
threaded_time

Conversation

@orso82
Copy link
Contributor

@orso82 orso82 commented Jan 29, 2025

empty!(dd.core_sources)
dd.global_time = dd.core_profiles.time[1]
FUSE.ActorHCD(dd,act)
IMAS.retime!(dd.core_sources, dd.core_profiles.time);
@show length(dd.core_sources.source[1].profiles_1d)
Threads.@threads :static for (k,time) in collect(enumerate(dd.core_profiles.time))
    threadin = Threads.threadid()
    @show ("start", k, time)
    IMAS.global_time(dd, time)
    FUSE.actor_logging(dd, false)
    FUSE.ActorHCD(dd,act)
    threadout = Threads.threadid()
    @assert threadin == threadout
    @show ("finish", k, time)
end
println("done")
@checkin :hcd dd ini act;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants