/// <inheritdoc/> protected override void PrintGeneralInfo(TextWriter writer) { base.PrintGeneralInfo(writer); writer.Write(" Total amount of shared memory per mp: "); writer.WriteLine( "{0} bytes, {1} KB", MaxSharedMemoryPerMultiprocessor, MaxSharedMemoryPerMultiprocessor / 1024); writer.Write(" L2 cache size: "); writer.WriteLine( "{0} bytes, {1} KB", L2CacheSize, L2CacheSize / 1024); writer.Write(" Max memory pitch: "); writer.Write(MaxMemoryPitch); writer.WriteLine(" bytes"); writer.Write(" Total number of registers per mp: "); writer.WriteLine(TotalNumRegistersPerMultiprocessor); writer.Write(" Total number of registers per group: "); writer.WriteLine(TotalNumRegistersPerGroup); writer.Write(" Concurrent copy and kernel execution: "); if (NumConcurrentCopyEngines < 1) { writer.WriteLine("False"); } else { writer.WriteLine("True, with {0} copy engines", NumConcurrentCopyEngines); } writer.Write(" Driver mode: "); writer.WriteLine(DriverMode.ToString()); writer.Write(" Has ECC support: "); writer.WriteLine(HasECCSupport); writer.Write(" Supports managed memory: "); writer.WriteLine(SupportsManagedMemory); writer.Write(" Supports compute preemption: "); writer.WriteLine(SupportsComputePreemption); writer.Write(" PCI domain id / bus id / device id: "); writer.WriteLine("{0} / {1} / {2}", PCIDomainId, PCIBusId, PCIDeviceId); writer.Write(" NVML PCI bus id: "); writer.WriteLine(NVMLPCIBusId); }
public static Driver Create(DriverMode mode) { switch (mode) { case DriverMode.Serial: return(new DriverSerial()); case DriverMode.Parallel: return(new DriverParallel()); } throw new System.NotImplementedException(mode.ToString()); }
public static void Open(DriverMode driver) { bool _64bit = IntPtr.Size == 8; if (isopen) { return; } PlatformID platid = System.Environment.OSVersion.Platform; if (platid.ToString().StartsWith("Win")) { //in windows gtk or winforms are both valid if (driver == DriverMode.WinForms || driver == DriverMode.Auto) { drv = new GuppyGUI.WinForms.WinFormsDriver(); } else if (driver == DriverMode.GtkSharp) { if (_64bit) { throw new Exception("You are trying to initalize Guppy with the gtk sharp driver in 64 bit mode. This is not possible, please change driver or change compilation target to x86"); } drv = new GuppyGUI.GtkSharp.GtkSharpDriver(); } } else { //for now: run GtkSharp driver on all other platforms drv = new GuppyGUI.GtkSharp.GtkSharpDriver(); } drv.Open(); isopen = true; }
public bool SetDriverMode(DriverMode NewMode) { Thread.Sleep(DummySleep); return(true); }