Page MenuHome

Mantaflow parallelizations
AbandonedPublic

Authored by Erik Abrahamsson (erik85) on Jul 22 2021, 9:23 PM.
Tokens
"Love" token, awarded by Raimund58."Like" token, awarded by kivig."Love" token, awarded by dingto."Love" token, awarded by easythrees."Love" token, awarded by gritche."Love" token, awarded by gilberto_rodrigues."Love" token, awarded by Alaska."Love" token, awarded by digim0nk."Love" token, awarded by Schamph."Love" token, awarded by kursadk."Love" token, awarded by silex."Like" token, awarded by dulrich."Like" token, awarded by YAFU.

Details

Summary

This will parallelize parts of two functions in Mantaflow.
On my machine the attached test file takes 17.1s to bake with the patch applied compared to 26.3s before the patch (1.54x speedup).
Cpu-time before was 178s and after 164s.

After
Before:

Diff Detail

Repository
rB Blender

Event Timeline

Erik Abrahamsson (erik85) requested review of this revision.Jul 22 2021, 9:23 PM
Erik Abrahamsson (erik85) created this revision.
Erik Abrahamsson (erik85) edited the summary of this revision. (Show Details)

Fixed a bug where it didn't skip cubeIdx properly.

Removed unnecessary clear of cubeIndices

Erik Abrahamsson (erik85) edited the summary of this revision. (Show Details)
  • Found a way to make a huge improvement by precalculating pStart and pEnd to avoid doing it over and over again. This gave around 20% improvement.
  • Freeing the Grids in parallel.

Hm apparently only parts of the patch was committed. Not sure what are @Sebastián Barschkis (sebbas) plans on that regard (not know how to re-open the patch either :/