public static void Correctness256()
        {
            var       target            = GPUModuleTarget.DefaultWorker;
            const int numBodies         = 256 * 56;
            var       expectedSimulator = new CpuSimulator(target.GetWorker(), numBodies);

            using (var actualSimulator = new GpuStaticSimulatorModule(target, 256))
            {
                Common.Test(expectedSimulator, actualSimulator, numBodies);
            }
        }
        public static void Performence()
        {
            var       target    = GPUModuleTarget.DefaultWorker;
            const int numBodies = 256 * 56;

            using (var simulatorModule64 = new GpuStaticSimulatorModule(target, 64))
                using (var simulatorModule128 = new GpuStaticSimulatorModule(target, 128))
                    using (var simulatorModule256 = new GpuStaticSimulatorModule(target, 256))
                        using (var simulatorModule512 = new GpuStaticSimulatorModule(target, 512))
                            using (var simulatorModule640 = new GpuStaticSimulatorModule(target, 640))
                            {
                                Common.Performance(simulatorModule64, numBodies);
                                Common.Performance(simulatorModule128, numBodies);
                                Common.Performance(simulatorModule256, numBodies);
                                Common.Performance(simulatorModule512, numBodies);
                                Common.Performance(simulatorModule640, numBodies);
                            }
        }
 public static void Performence()
 {
     var target = GPUModuleTarget.DefaultWorker;
     const int numBodies = 256*56;
     using (var simulatorModule64 = new GpuStaticSimulatorModule(target, 64))
     using (var simulatorModule128 = new GpuStaticSimulatorModule(target, 128))
     using (var simulatorModule256 = new GpuStaticSimulatorModule(target, 256))
     using (var simulatorModule512 = new GpuStaticSimulatorModule(target, 512))
     using (var simulatorModule640 = new GpuStaticSimulatorModule(target, 640))
     {
         Common.Performance(simulatorModule64, numBodies);
         Common.Performance(simulatorModule128, numBodies);
         Common.Performance(simulatorModule256, numBodies);
         Common.Performance(simulatorModule512, numBodies);
         Common.Performance(simulatorModule640, numBodies);
     }
 }
 public static void Correctness256()
 {
     var target = GPUModuleTarget.DefaultWorker;
     const int numBodies = 256*56;
     var expectedSimulator = new CpuSimulator(target.GetWorker(), numBodies);
     using (var actualSimulator = new GpuStaticSimulatorModule(target, 256))
     {
         Common.Test(expectedSimulator, actualSimulator, numBodies);
     }
 }