Esempio n. 1
0
 private GpuContext()
 {
     CudaContext   = new CudaContext(Global.CudaDeviceId);
     BlasContext   = new CudaBlas();
     KernelManager = new KernelManager(this);
     Methods       = new TensorMethods(this);
     Stream        = new CudaStream();
 }
Esempio n. 2
0
 public TensorMethods(GpuContext context)
 {
     _kernelManager = context.KernelManager;
 }