17 #ifndef AGX_TASKTEMPLATE_H
18 #define AGX_TASKTEMPLATE_H
33 #define AGX_TASK(_Name, _Path) \
36 agx::TaskPlugin plugin_ ## _Name(_Path, agx::Device::CPU); \
37 agx::TaskPluginImplementationT<_Name> plugin_implementation(&plugin_ ## _Name); \
45 AGXTASK_EXPORT
const char *name() \
58 return implementation == 0 ? new ::_Name(device) :
nullptr; \
61 AGXTASK_EXPORT
void destroy(
agx::Task * ) \
67 #define AGX_OVERLOADED_TASK(_Name, _DeviceType) \
72 AGXTASK_EXPORT const char *name() \
78 AGXTASK_EXPORT agx::Device::Type deviceType() \
83 AGXTASK_EXPORT agx::Task *create(agx::Device *device, agx::UInt implementation) \
85 return constructors[implementation] ? constructors[implementation](device) : nullptr; \
88 AGXTASK_EXPORT void destroy(agx::Task *
) \
An agx::Device is an abstract representation of a device on which data can be stored and processed.
Type
Explicit list of device types.
A representation of a generic task.