Ejemplo n.º 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;
            }
        }
Ejemplo n.º 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;
            }
        }
Ejemplo n.º 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;
            }
        }
Ejemplo n.º 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;
            }
        }