| 131 | MNNTestSuiteRegister(ExecutorResetTest, "expr/ExecutorReset"); |
| 132 | class ExecutorConfigTest : public MNNTestCase { |
| 133 | virtual bool run(int precision) { |
| 134 | std::vector<std::thread> threads; |
| 135 | int threadNumber = 5; |
| 136 | for (int i=0; i<threadNumber; ++i) { |
| 137 | threads.emplace_back(([] { |
| 138 | for (int u=0; u<10; ++u) { |
| 139 | MNN::ScheduleConfig config; |
| 140 | std::shared_ptr<Executor::RuntimeManager> rt(Executor::RuntimeManager::createRuntimeManager(config)); |
| 141 | } |
| 142 | })); |
| 143 | } |
| 144 | for (auto& t : threads) { |
| 145 | t.join(); |
| 146 | } |
| 147 | return true; |
| 148 | }}; |
| 149 | MNNTestSuiteRegister(ExecutorConfigTest, "expr/ExecutorConfigTest"); |
| 150 | |
| 151 | class ExecutorCallBackTest : public MNNTestCase { |