public static ErrorCode CompileForDebugOnIntelCPU(this KernelWrapperBase kernel)
        {
            #warning Compiling kernel for debugging
            Console.WriteLine("Compiling {0} for debugging", kernel.KernelName);

            return(kernel.Compile(kernel.KernelSource, kernel.KernelName, string.Format("-cl-opt-disable -g -s \"{0}\"", kernel.OriginalKernelPath)));
        }
 public static ErrorCode Compile(this KernelWrapperBase kernel, out string errors, string options = null)
 {
     return(kernel.Compile(kernel.KernelSource, kernel.KernelName, out errors, options));
 }