boriskaus / MagmaThermoKinematics.jl

Package to simulate the thermal evolution of magmatic systems
MIT License
15 stars 3 forks source link

Main #1

Closed albert-de-montserrat closed 2 years ago

albert-de-montserrat commented 2 years ago

This PR adds some optimizations for the CPU version of examples/Example_2D_paper.jl and complementary CUDA (powered via ParallelStencil.jl) script. Perfromance (512X512 grid, 100 iterations):

new cpu iterations 5.906241 seconds (10.21 M allocations: 742.317 MiB, 0.95% gc time)

old cpu 11.066817 seconds (208.82 k allocations: 4.488 GiB, 1.08% gc time)

cuda 1.323841 seconds (264.43 k allocations: 488.701 MiB, 2.94% gc time, 1.79% compilation time)

boriskaus commented 2 years ago

thanks a lot - this is great!