Exemplo n.º 1
0
        public void Bake(IntPtr[] queueHandles)
        {
            if (IsBaked)
            {
                return;
            }

            CLFFT.CheckStatus(CLFFT.BakePlan(Handle, (uint)queueHandles.Length, queueHandles, null, IntPtr.Zero));
            IsBaked = true;
        }
Exemplo n.º 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;
 }
Exemplo n.º 3
0
 public void Destroy()
 {
     CLFFT.DestroyPlan(ref Handle);
 }
Exemplo n.º 4
0
 public CLFFTPlan(cl_context newContextHandle, CLFFTPlan other)
 {
     CLFFT.CopyPlan(out Handle, newContextHandle, other.Handle);
 }
Exemplo n.º 5
0
 public CLFFTPlan(cl_context contextHandle, CLFFTDim dimension, ulong[] size)
 {
     CLFFT.CheckStatus(CLFFT.CreateDefaultPlan(out Handle, contextHandle, dimension, size));
 }