Esempio n. 1
0
        public void Invoke(ArgumentList args) {
            base.CheckState();

            for(int i = this.Dims; i < 3; i++) {
                this.itemsDim[i] = 1;
                this.groupsDim[i] = 1;
            }

            occaKernelSetAllWorkingDims(this.OccaHandle, this.m_Dims, this.itemsDim.x, this.itemsDim.y, this.itemsDim.z, this.groupsDim.x, this.groupsDim.y, this.groupsDim.z);
            occaKernelRun_(this.OccaHandle, args.OccaHandle);
        }
Esempio n. 2
0
 public void Invoke(params object[] args) {
     base.CheckState();
     using(var agl = new ArgumentList(args)) {
         this.Invoke(agl);
     }
 }
Esempio n. 3
0
 public void AddDefine(string macro, object value)
 {
     occaKernelInfoAddDefine(this.OccaHandle, macro, ArgumentList.Obj2OccaType(value));
 }