diff --git a/pthwithcuda/main.cpp b/pthwithcuda/main.cpp index bfed54fa8039e9f2d5350ad50ba3f961df957549..a88163c6529e98f9ab35791d90dedab52f487175 100644 --- a/pthwithcuda/main.cpp +++ b/pthwithcuda/main.cpp @@ -17,7 +17,6 @@ #include "utils/graphgenerator.h" #include "utils/performancetest.h" -// Funktion für CPU vs. OpenMP vs. CUDA Vergleich void runComparisonTest(int size, int numThreads) { std::cout << "\n============================================================" << std::endl; std::cout << "TEST: Graph Size " << size << " with " << numThreads << " threads" << std::endl; @@ -142,13 +141,11 @@ int main() { return 1; } - // Verschiedene Graphgrößen testen - runComparisonTest(100, omp_get_max_threads()); // Klein - runComparisonTest(500, omp_get_max_threads()); // Mittel - runComparisonTest(1000, omp_get_max_threads()); // Groß - - // Sehr große Graphen - optional - // runComparisonTest(2000, omp_get_max_threads()); + // Verschiedene Graphgrößen testen bis 4096 + for (int i = 8; i <= 4096; i *= 2) +{ + runComparisonTest(i, omp_get_max_threads()); +} std::cout << "\n============================================================"; std::cout << "\n TEST COMPLETE";