5#ifndef ATHCUDAINTERFACES_IKERNELTASK_H
6#define ATHCUDAINTERFACES_IKERNELTASK_H
Abstract interface for setting up / running a CUDA task.
KernelExecMode
Possible modes in which the kernel was executed.
@ Synchronous
The kernel was executed synchronously on the CPU.
@ Asynchronous
The kernel was executed asynchronously on a CUDA device.
virtual int finished(int code, KernelExecMode mode)=0
Function called when an asynchronous execution finishes.
virtual int execute(StreamHolder &stream)=0
Execute the kernel using a specific stream.
virtual ~IKernelTask()=default
Virtual destructor, to make vtable happy.
Helper class for handling CUDA streams.