jsitaraman / tioga

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

Registering host/device data from applications #35

Closed sayerhs closed 3 years ago

sayerhs commented 3 years ago

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

sayerhs commented 3 years ago

@jsitaraman

some_gpu_func<<<blocks, threads>>>(m_info.xyz.dptr, m_info.iblank_node.dptr, ...);
sayerhs commented 3 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.