Esempio n. 1
0
            /// <summary>
            /// Loads an explicitly grouped kernel.
            /// </summary>
            public Kernel LoadKernel(
                Accelerator accelerator,
                CompiledKernel compiledKernel,
                out KernelInfo kernelInfo)
            {
                var kernel = accelerator.LoadKernel(compiledKernel);

                kernelInfo = KernelInfo.CreateFrom(
                    compiledKernel.Info,
                    null,
                    null);
                return(kernel);
            }
Esempio n. 2
0
 /// <summary cref="IKernelLoader.LoadKernel(Accelerator, CompiledKernel)"/>
 public Kernel LoadKernel(Accelerator accelerator, CompiledKernel compiledKernel)
 {
     return(accelerator.LoadKernel(compiledKernel));
 }