gmarkall / manycore_form_compiler

MCFC is deprecated. See https://code.launchpad.net/~grm08/ffc/pyop2
https://code.launchpad.net/~grm08/ffc/pyop2
GNU General Public License v3.0
3 stars 1 forks source link

Only transfer data back to the host when necessary #61

Closed gmarkall closed 12 years ago

gmarkall commented 12 years ago

Presently we transfer the fields from the GPU back to the host at the end of every timestep. This is inefficent. Instead, these changes only transfer the fields back to the host when a call to output_state occurs.

A summary of the changes are:

These changes have passed the tests on the fluidity-dev queue on the buildbot.

kynan commented 12 years ago

Great! Does it show any performance improvements?

gmarkall commented 12 years ago

It shaves about 10-15% off the simulation time for the advection, diffusion and advection-diffusion test cases. However, they're pretty small tests so I'd expect more speedup with bigger simulations.