jsitaraman / tioga

Tioga is a library for overset grid assembly on parallel distributed systems
GNU Lesser General Public License v3.0
67 stars 36 forks source link

Registering host/device data from applications #35

Closed sayerhs closed 4 years ago

sayerhs commented 4 years ago

This PR introduces data structures for registering host/device data for MeshBlock and CartGrid/Block

sayerhs commented 4 years ago

@jsitaraman

some_gpu_func<<<blocks, threads>>>(m_info.xyz.dptr, m_info.iblank_node.dptr, ...);
sayerhs commented 4 years ago

Another clarification... when the solver registers minfo, both hptr and dptr will be valid. On non-GPU builds it will just point to the same memory location, on GPU builds it will contain the host/device views. We will not register a separate minfo_device.