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);
116 virtual void rebind()
override;
120 virtual void parameterAddedCallback(
Parameter* parameter)
override;
121 virtual void parameterRemovedCallback(
Parameter* parameter)
override;
122 void locateNumWorkItemsValue();
151 UInt getNumJobs()
const;
153 const RangeDispatch& getRangeDispatch()
const;
158 virtual RangeJob *allocateRangeJobs(
size_t numJobs) = 0;
187 LambdaKernel(
const agx::Name& name, LambdaCallback lambdaCallback, DataSetSizeCallback sizeCallback);
191 virtual RangeJob *allocateRangeJobs(
size_t numJobs)
override;
192 void callOnJobRange(
const RangeJob& job);
198 DataSetSizeCallback m_sizeCallback;
199 LambdaCallback m_lambda;
217 const_cast<Kernel *
>(
this)->locateNumWorkItemsValue();
219 return m_numWorkItems->get();
229 # 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.
std::function< void(const RangeJob &)> LambdaCallback
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
A range job executes a kernel implementation on a subset of the data.
const RangeDispatch & getRangeDispatch() const
RangeJob::RangeCallback RangeDispatch
agx::UInt getMaxJobSize() const
The agx namespace 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
#define AGX_DECLARE_VECTOR_TYPES(type)
std::function< UInt()> DataSetSizeCallback
An agx::Device is an abstract representation of a device on which data can be stored and processed...