From 0fa23c80815fa77ca5d169a5754b9c6adbd2fbed Mon Sep 17 00:00:00 2001 From: JordanHanotiaux <103147288+JordanHanotiaux@users.noreply.github.com> Date: Sun, 13 Apr 2025 12:32:20 +0200 Subject: [PATCH] Update distributedtests.cpp --- P2/distributedtests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/P2/distributedtests.cpp b/P2/distributedtests.cpp index 89cdc1a..7c6ab45 100644 --- a/P2/distributedtests.cpp +++ b/P2/distributedtests.cpp @@ -49,7 +49,7 @@ void testMultiplyTransposed() { double totalTimeSeq = 0.0; double totalTimeDist = 0.0; - for (int rep = 0; rep < 3; ++rep) { + for (int rep = 0; rep < 10; ++rep) { // Initialisation des matrices pleines Matrix matrix1Full(N, N); Matrix matrix2Full(N, N); @@ -74,7 +74,7 @@ void testMultiplyTransposed() { // Chronométrage de l'opération séquentielle double timeSeq = 0.0; - if (rank == 0) { + if (rank == -1) { double startSequential = MPI_Wtime(); Matrix resultSequential = matrix1Full * matrix2Full.transpose(); double endSequential = MPI_Wtime(); -- GitLab