In 3D-LBM-AMR and Gamer, omp parallel for is widely used for computing on CPU. If the involved data are properly mapped, we can offload the computing to GPU.
However, both of them use the complex data structure to hold both data and computing methods.
https://github.com/ouankou/3D-LBM-AMR/blob/master/src/Node.h
It has a 3D array of this object. We could either figure out a way to map this 3D array to GPU, which would need much less changes to the code, or pick up the involve data to create a new data array and rewrite a kernel function based current computing methods.
In 3D-LBM-AMR and Gamer,
omp parallel for
is widely used for computing on CPU. If the involved data are properly mapped, we can offload the computing to GPU. However, both of them use the complex data structure to hold both data and computing methods. https://github.com/ouankou/3D-LBM-AMR/blob/master/src/Node.hIt has a 3D array of this object. We could either figure out a way to map this 3D array to GPU, which would need much less changes to the code, or pick up the involve data to create a new data array and rewrite a kernel function based current computing methods.