public void SetDevice(Engine.DeviceType device) { switch (device) { case Engine.DeviceType.Default: DeviceManager.Current = Context.Cpu(); break; case Engine.DeviceType.CPU: DeviceManager.Current = Context.Cpu(); break; case Engine.DeviceType.CUDA: DeviceManager.Current = Context.Gpu(0); break; case Engine.DeviceType.OpenCL: throw new NotSupportedException("OpenCL is not supported. Please use ArrayFire backend."); default: break; } }
public void SetDevice(Engine.DeviceType device) { throw new NotImplementedException(); }