예제 #1
0
        /// <summary>
        /// Frees the specified plan.
        /// </summary>
        /// <param name="plan">The plan.</param>
        public override void Remove(FFTPlan plan)
        {
            FFTPlanEx planEx = Plans[plan];

            CUFFTResult res = _driver.cufftDestroy(planEx.CudaFFTHandle);

            if (res != CUFFTResult.Success)
            {
                //throw new CudafyHostException(res.ToString());
                Debug.WriteLine("remove plan failed: " + res.ToString());
            }
            else
            {
                Debug.WriteLine("remove plan succeeded: " + res.ToString());
            }
            Plans.Remove(plan);
        }
예제 #2
0
 public void Destroy(cufftHandle plan)
 {
     this.LastError = _driver.cufftDestroy(plan);
 }