Exemple #1
0
 protected override void UpdateWithCondition(bool ForceUpdate, ComputeVariable variable)
 {
     if (ForceUpdate || UpdateConditionCheck(variable))
     {
         Update(BatchCounter, variable);
     }
 }
Exemple #2
0
        public void Do(bool ForceUpdate, ComputeVariable variable)
        {
            DateTime start = DateTime.Now;

            try
            {
                _cParam = variable.Parameter;
                ProcessFunction(variable);
                UpdateWithCondition(ForceUpdate, variable);

                ClearGpuParameter();
            }
            catch (Exception ex)
            {
                throw ex;
            }
            StepElapsedSpan = (DateTime.Now - start);
        }
Exemple #3
0
 protected virtual void UpdateWithCondition(bool ForceUpdate, ComputeVariable variable)
 {
 }
Exemple #4
0
 protected abstract void GpuFunction(ComputeVariable variable);
Exemple #5
0
 protected abstract bool UpdateConditionCheck(ComputeVariable parameter);
Exemple #6
0
 public abstract void Update(int count, ComputeVariable variable);
Exemple #7
0
 public abstract void CreateTemporaryBuffer(ComputeVariable variable);