ForestClaw / forestclaw

Quadtree/octree adaptive PDE solver based based on p4est.
http://www.forestclaw.org
BSD 2-Clause "Simplified" License
58 stars 21 forks source link

CudaClaw : Add user member to clawpatch; store allocated pointers to fp, fm, gp, gm for re-use #139

Closed donnaaboise closed 5 years ago

donnaaboise commented 5 years ago
  1. Add a void* pointer in the clawpatch class;
  2. Create virtual user access function so this can be set by solvers
  3. Use this void star field to store pointers to memory allocated on the GPU for fp, fm, gp, gm.

This should cut down considerably on time spent in GPU access.

donnaaboise commented 5 years ago

User data is stored in the patch object. Might be reasonable to move this to clawpatch, or to create a "cudapatch".