Пример #1
0
        public void Bake(IntPtr[] queueHandles)
        {
            if (IsBaked)
            {
                return;
            }

            CLFFT.CheckStatus(CLFFT.BakePlan(Handle, (uint)queueHandles.Length, queueHandles, null, IntPtr.Zero));
            IsBaked = true;
        }
Пример #2
0
 public void EnqueueTransform(
     CLFFTDirection dir,
     UInt32 numQueuesAndEvents,
     cl_command_queue[] commQueues,
     UInt32 numWaitEvents,
     cl_event[] waitEvents,
     cl_event[] outEvents,
     cl_mem[] inputBuffers,
     cl_mem[] outputBuffers,
     cl_mem tmpBuffer
     )
 {
     CLFFT.CheckStatus(CLFFT.EnqueueTransform(Handle, dir, numQueuesAndEvents, commQueues, numWaitEvents, waitEvents, outEvents, inputBuffers, outputBuffers, tmpBuffer));
     IsBaked = true;
 }
Пример #3
0
 public void Destroy()
 {
     CLFFT.DestroyPlan(ref Handle);
 }
Пример #4
0
 public CLFFTPlan(cl_context newContextHandle, CLFFTPlan other)
 {
     CLFFT.CopyPlan(out Handle, newContextHandle, other.Handle);
 }
Пример #5
0
 public CLFFTPlan(cl_context contextHandle, CLFFTDim dimension, ulong[] size)
 {
     CLFFT.CheckStatus(CLFFT.CreateDefaultPlan(out Handle, contextHandle, dimension, size));
 }