Support checking event status in GpuEventSynchronizer
authorSzilárd Páll <pall.szilard@gmail.com>
Thu, 11 Feb 2021 10:57:05 +0000 (11:57 +0100)
committerSzilárd Páll <pall.szilard@gmail.com>
Tue, 16 Feb 2021 20:28:05 +0000 (21:28 +0100)
commit2dd46f2842059bf9834547ecceef88872ff394d7
tree99ec80e62d1e250cf9dbc43b81568b09a2e06e1a
parent044a141a8695852e2b6ccfc51e1cf5a2e2a67664
Support checking event status in GpuEventSynchronizer

This commit adds an isReady() method that allows checking whether
the event has been triggered (or in SYCL associated barrier task has
completed).
The primary aim is porting the nbnxm module to the unified GPU layer.

Implements part of #2527
src/gromacs/gpu_utils/gpueventsynchronizer.cuh
src/gromacs/gpu_utils/gpueventsynchronizer_ocl.h
src/gromacs/gpu_utils/gpueventsynchronizer_sycl.h