示例#1
0
        public MyLocalSimulation(MyValidator validator, IMyExecutionPlanner executionPlanner) : base(validator)
        {
            m_threadPool = new MyThreadPool(MyKernelFactory.Instance.DevCount, InitCore, ExecutePlan);
            m_threadPool.StartThreads();

            try
            {
                ExecutionPlanner = executionPlanner;
            }
            catch (Exception e)
            {
                m_threadPool.Finish();
                throw e;
            }
        }
示例#2
0
        public MyLocalSimulation(MyValidator validator, IMyExecutionPlanner executionPlanner)
            : base(validator)
        {
            m_threadPool = new MyThreadPool(MyKernelFactory.Instance.DevCount, InitCore, ExecutePlan);
            m_threadPool.StartThreads();

            try
            {
                ExecutionPlanner = executionPlanner;
            }
            catch (Exception e)
            {
                m_threadPool.Finish();
                throw e;
            }
        }
示例#3
0
        public MyLocalSimulation()
        {
            m_threadPool = new MyThreadPool(MyKernelFactory.Instance.DevCount, InitCore, ExecuteCore);
            m_threadPool.StartThreads();

            try
            {
                ExecutionPlanner = new MyDefaultExecutionPlanner()
                {
                    PlanSignalTasks = true
                };

                PartitioningStrategy = new MyAllInOneGPUPartitioning(MyKernelFactory.Instance.DevCount, 0);
                CurrentDebuggedBlocks = new MyExecutionBlock[MyKernelFactory.Instance.DevCount];
            }
            catch (Exception e)
            {
                m_threadPool.Finish();
                throw e;
            }
        }
示例#4
0
        public MyLocalSimulation()
        {
            m_threadPool = new MyThreadPool(MyKernelFactory.Instance.DevCount, InitCore, ExecuteCore);
            m_threadPool.StartThreads();

            try
            {
                ExecutionPlanner = new MyDefaultExecutionPlanner()
                {
                    PlanSignalTasks = true
                };

                PartitioningStrategy  = new MyAllInOneGPUPartitioning(MyKernelFactory.Instance.DevCount, 0);
                CurrentDebuggedBlocks = new MyExecutionBlock[MyKernelFactory.Instance.DevCount];
            }
            catch (Exception e)
            {
                m_threadPool.Finish();
                throw e;
            }
        }