From 739c95c7d7d2bb8a22a82d5949d7104f1455a15c Mon Sep 17 00:00:00 2001 From: JordanHanotiaux <103147288+JordanHanotiaux@users.noreply.github.com> Date: Sun, 13 Apr 2025 12:42:54 +0200 Subject: [PATCH] update --- P2/Makefile | 2 +- P2/distributedtests.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/P2/Makefile b/P2/Makefile index 2efb28f..0228e8f 100644 --- a/P2/Makefile +++ b/P2/Makefile @@ -26,7 +26,7 @@ globals.o: globals.cpp globals.hpp mlp_sgd_distributed.cpp $(CXX) $(CXXFLAGS) -c globals.cpp run: $(TARGET) - mpirun -np 16 ./$(TARGET) + mpirun -np 2 ./$(TARGET) clean: rm -f $(OBJ) $(TARGET) diff --git a/P2/distributedtests.cpp b/P2/distributedtests.cpp index c077b55..8731c49 100644 --- a/P2/distributedtests.cpp +++ b/P2/distributedtests.cpp @@ -74,7 +74,7 @@ void testMultiplyTransposed() { // Chronométrage de l'opération séquentielle double timeSeq = 0.0; - if (rank == -1) { + if (rank == 0) { double startSequential = MPI_Wtime(); Matrix resultSequential = matrix1Full * matrix2Full.transpose(); double endSequential = MPI_Wtime(); -- GitLab