@@ -165,63 +165,6 @@ void RunTestPersistentTransientMemory(Scheduler<GraphT> *testScheduler) {
165165 }
166166}
167167
168- template <typename GraphT>
169- void RunTestLocalInOutMemory (Scheduler<GraphT> *testScheduler) {
170- // static_assert(std::is_base_of<Scheduler, T>::value, "Class is not a scheduler!");
171- std::vector<std::string> filenamesGraph = TestGraphs ();
172- std::vector<std::string> filenamesArchitectures = TestArchitectures ();
173-
174- // Getting root git directory
175- std::filesystem::path cwd = std::filesystem::current_path ();
176- std::cout << cwd << std::endl;
177- while ((!cwd.empty ()) && (cwd.filename () != " OneStopParallel" )) {
178- cwd = cwd.parent_path ();
179- std::cout << cwd << std::endl;
180- }
181-
182- for (auto &filenameGraph : filenamesGraph) {
183- for (auto &filenameMachine : filenamesArchitectures) {
184- std::string nameGraph = filenameGraph.substr (filenameGraph.find_last_of (" /\\ " ) + 1 );
185- nameGraph = nameGraph.substr (0 , nameGraph.find_last_of (" ." ));
186- std::string nameMachine = filenameMachine.substr (filenameMachine.find_last_of (" /\\ " ) + 1 );
187- nameMachine = nameMachine.substr (0 , nameMachine.rfind (" ." ));
188-
189- std::cout << std::endl << " Scheduler: " << testScheduler->GetScheduleName () << std::endl;
190- std::cout << " Graph: " << nameGraph << std::endl;
191- std::cout << " Architecture: " << nameMachine << std::endl;
192-
193- BspInstance<GraphT> instance;
194-
195- bool statusGraph = file_reader::ReadComputationalDagHyperdagFormatDB ((cwd / filenameGraph).string (),
196- instance.GetComputationalDag ());
197- bool statusArchitecture
198- = file_reader::ReadBspArchitecture ((cwd / " data/machine_params/p3.arch" ).string (), instance.GetArchitecture ());
199-
200- AddMemWeights (instance.GetComputationalDag ());
201- instance.GetArchitecture ().SetMemoryConstraintType (MemoryConstraintType::LOCAL_IN_OUT);
202- std::cout << " Memory constraint type: LOCAL_IN_OUT" << std::endl;
203-
204- if (!statusGraph || !statusArchitecture) {
205- std::cout << " Reading files failed." << std::endl;
206- BOOST_CHECK (false );
207- }
208-
209- const std::vector<VMemwT<GraphT>> boundsToTest = {10 , 20 , 50 , 100 };
210-
211- for (const auto &bound : boundsToTest) {
212- instance.GetArchitecture ().SetMemoryBound (bound);
213-
214- BspSchedule<GraphT> schedule (instance);
215- const auto result = testScheduler->ComputeSchedule (schedule);
216-
217- BOOST_CHECK_EQUAL (ReturnStatus::OSP_SUCCESS, result);
218- BOOST_CHECK (schedule.SatisfiesPrecedenceConstraints ());
219- BOOST_CHECK (schedule.SatisfiesMemoryConstraints ());
220- }
221- }
222- }
223- }
224-
225168template <typename GraphT>
226169void RunTestLocalIncEdgesMemory (Scheduler<GraphT> *testScheduler) {
227170 // static_assert(std::is_base_of<Scheduler, T>::value, "Class is not a scheduler!");
@@ -342,9 +285,6 @@ BOOST_AUTO_TEST_CASE(GreedyBspSchedulerLocalTest) {
342285 GreedyBspScheduler<GraphImplT, LocalMemoryConstraint<GraphImplT>> test1;
343286 RunTestLocalMemory (&test1);
344287
345- GreedyBspScheduler<GraphImplT, LocalInOutMemoryConstraint<GraphImplT>> test2;
346- RunTestLocalInOutMemory (&test2);
347-
348288 GreedyBspScheduler<GraphImplT, LocalIncEdgesMemoryConstraint<GraphImplT>> test3;
349289 RunTestLocalIncEdgesMemory (&test3);
350290
@@ -358,9 +298,6 @@ BOOST_AUTO_TEST_CASE(GrowLocalAutoCoresLocalTest) {
358298 GrowLocalAutoCores<GraphImplT, LocalMemoryConstraint<GraphImplT>> test1;
359299 RunTestLocalMemory (&test1);
360300
361- GrowLocalAutoCores<GraphImplT, LocalInOutMemoryConstraint<GraphImplT>> test2;
362- RunTestLocalInOutMemory (&test2);
363-
364301 GrowLocalAutoCores<GraphImplT, LocalIncEdgesMemoryConstraint<GraphImplT>> test3;
365302 RunTestLocalIncEdgesMemory (&test3);
366303
@@ -374,9 +311,6 @@ BOOST_AUTO_TEST_CASE(BspLockingLocalTest) {
374311 BspLocking<GraphImplT, LocalMemoryConstraint<GraphImplT>> test1;
375312 RunTestLocalMemory (&test1);
376313
377- BspLocking<GraphImplT, LocalInOutMemoryConstraint<GraphImplT>> test2;
378- RunTestLocalInOutMemory (&test2);
379-
380314 BspLocking<GraphImplT, LocalIncEdgesMemoryConstraint<GraphImplT>> test3;
381315 RunTestLocalIncEdgesMemory (&test3);
382316
@@ -389,20 +323,6 @@ BOOST_AUTO_TEST_CASE(VarianceLocalTest) {
389323 RunTestLocalMemory (&test);
390324}
391325
392- // BOOST_AUTO_TEST_CASE(kl_local_test) {
393-
394- // VarianceFillup<ComputationalDagEdgeIdxVectorImplDefT,
395- // LocalMemoryConstraint<ComputationalDagEdgeIdxVectorImplDefT>>
396- // test;
397-
398- // kl_total_comm<ComputationalDagEdgeIdxVectorImplDefT,
399- // local_search_local_memory_constraint<ComputationalDagEdgeIdxVectorImplDefT>> kl;
400-
401- // ComboScheduler<ComputationalDagEdgeIdxVectorImplDefT> combo_test(test, kl);
402-
403- // run_test_local_memory(&combo_test);
404- // };
405-
406326BOOST_AUTO_TEST_CASE (GreedyBspSchedulerPersistentTransientTest) {
407327 GreedyBspScheduler<ComputationalDagEdgeIdxVectorImplDefT, PersistentTransientMemoryConstraint<ComputationalDagEdgeIdxVectorImplDefT>>
408328 test;
0 commit comments