Implement alternating GPU wait
[alexxy/gromacs.git] / src / gromacs / gpu_utils / gpu_utils.h
index a3254bd467cdc9cf9226459d570cc326ec333ef1..88323f87629083e02e13e43b88ce6b2b1098bfe5 100644 (file)
@@ -67,6 +67,13 @@ enum class GpuApiCallBehavior
     Async
 };
 
+//! Types of actions associated to waiting or checking the completion of GPU tasks
+enum class GpuTaskCompletion
+{
+    Wait, /*<< Issue a blocking wait for the task */
+    Check /*<< Only check whether the task has completed */
+};
+
 /*! \brief Detect all GPUs in the system.
  *
  *  Will detect every GPU supported by the device driver in use. Also