/// <summary>
        /// Executes simulation with OpenCL implementation in batch to checkpoint and compares with expected state
        /// </summary>
        /// <param name="sim">Simulation</param>
        /// <param name="simType">Simulation type</param>
        /// <param name="stateName">State name</param>
        public static void DoBatchOpenCLToCheckpointAndAssert(SimulationBase sim, SimulationType simType, string stateName)
        {
            OpenCLDispatcher dispatcher;
            OpenCLDevice     device;

            GetOpenCLDispatcherAndDevice(out dispatcher, out device);

            sim.DoBatchOpenCL(dispatcher, device, StepCountToCheckpoint);

            AssertSimulationWithState(sim, simType, stateName);
        }
示例#2
0
 public static void RunOpenCL(SimulationBase sim)
 {
     sim.DoBatchOpenCL(dispatcher, device, RunStepCount);
 }