ttricco / sarracen

A Python library for smoothed particle hydrodynamics (SPH) analysis and visualization.
https://sarracen.readthedocs.io
GNU General Public License v3.0
16 stars 18 forks source link

Interpolation to a 3D grid is sequential #34

Open ttricco opened 2 years ago

ttricco commented 2 years ago

Right now, interpolation to a 3D grid creates a stack of 2D interpolated grids. Each 2D layer is calculated in parallel, but each layer is computed serially. This may be ok on the CPU depending on grid size/number of particles, but for the CUDA implementation, it means that data is transferred to/from the GPU with every layer.