From f3a7c3ab8c16b1d45f77ab393e6e089b39d64fa1 Mon Sep 17 00:00:00 2001 From: Ayoub Boughourfi <ayoub.boughourfi@et.hs-fulda.de> Date: Wed, 12 Mar 2025 23:23:45 +0100 Subject: [PATCH] last update --- pthwithcuda/main.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/pthwithcuda/main.cpp b/pthwithcuda/main.cpp index bfed54f..a88163c 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"; -- GitLab