Closed lars2015 closed 6 months ago
The function module_mixing()
has been ported to and successfully tested on GPUs:
https://github.com/slcs-jsc/mptrac/blob/54e6d58e0fbe632a2c285e0e626e49fbd3c47dc8/src/trac.c#L1913
Best performance was found using #pragma acc atomic update
for updating the grid box averages:
https://github.com/slcs-jsc/mptrac/blob/54e6d58e0fbe632a2c285e0e626e49fbd3c47dc8/src/trac.c#L2044
Is your feature request related to a problem?
trac.c
is limited to operating on CPUs. For GPU runs, particle data will be transferred form GPU to CPU memory, mixing will be calculated on the CPUs, and data will be transferred back to GPUs.Describe the solution you'd like
Additional context
module_sort()
.