28 # pragma warning(push) 29 # pragma warning(disable : 4251 ) // class X needs to have dll-interface to be used by clients of class Y 51 static Kernel *load(TiXmlElement *eKernel,
Device *device);
52 virtual void configure(TiXmlElement *eKernel)
override;
65 virtual float getComputeTime();
90 void setNumJobsPerThread(
agx::UInt numJobs);
118 virtual void parameterAddedCallback(
Parameter* parameter)
override;
119 virtual void parameterRemovedCallback(
Parameter* parameter)
override;
120 void locateNumWorkItemsValue();
149 UInt getNumJobs()
const;
151 const RangeDispatch& getRangeDispatch()
const;
156 virtual RangeJob *allocateRangeJobs(
size_t numJobs) = 0;
189 virtual RangeJob *allocateRangeJobs(
size_t numJobs)
override;
190 void callOnJobRange(
const RangeJob& job);
196 DataSetSizeCallback m_sizeCallback;
197 RangeCallback m_lambda;
215 const_cast<Kernel *
>(
this)->locateNumWorkItemsValue();
217 return m_numWorkItems->get();
227 # pragma warning(pop)
Vec3T< T > min(const Vec3T< T > &lhs, const Vec3T< T > &rhs)
Vec3T< T > max(const Vec3T< T > &lhs, const Vec3T< T > &rhs)
A model is an abstract representation of the class of an agx::Object.
Generalized callback, using std::function.
agx::UInt getCostPerElement() const
A kernel which executes on the CPU using native C/C++ code.
Vector< RangeJob > m_rangeJobs
#define AGX_DECLARE_POINTER_TYPES(type)
Representation of a name string.
agx::UInt getMinJobSize() const
RangeDispatch m_rangeDispatch
std::function< void(const RangeJob &)> RangeCallback
A range job executes a kernel implementation on a subset of the data.
const RangeDispatch & getRangeDispatch() const
RangeJob::RangeCallback RangeDispatch
agx::UInt getMaxJobSize() const
Namespace agx contains the dynamics/math part of the AGX Dynamics API.
Templated callback with one argument.
A representation of a task/kernel parameter, which can be bound using a string path or explicitly to ...
A kernel is an abstract representation of data parallel tasks.
agxData::ValueRefT< UInt > m_numWorkItems
virtual void preDispatch()
Explicitly set the splitting parameter.
agx::UInt getNumJobsPerThread() const
agx::UInt getNumWorkItems() const
std::function< UInt()> DataSetSizeCallback
An agx::Device is an abstract representation of a device on which data can be stored and processed...
AGX_DECLARE_VECTOR_TYPES(Clock)