Example #1
0
 public AutoRuntime(AutoConfig config, Type t_kernel)
     : base(config, t_kernel)
 {
     var cudaDevice = CudaDevice.Current;
     if (cudaDevice != null)
     {
         var cfg = CudaConfig.Default;
         _impl = new CudaRuntime(cfg, t_kernel);
     }
     else
     {
         var cfg = CpuConfig.Default;
         _impl = new CpuRuntime(cfg, t_kernel);
     }
 }
Example #2
0
 protected AutoConfig(AutoConfig proto)
     : base(proto)
 {
 }
Example #3
0
 protected AutoConfig(AutoConfig proto)
     : base(proto)
 {
 }