Exemplo n.º 1
0
        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)));
        }
Exemplo n.º 2
0
 public static ErrorCode Compile(this KernelWrapperBase kernel, out string errors, string options = null)
 {
     return(kernel.Compile(kernel.KernelSource, kernel.KernelName, out errors, options));
 }