diff --git a/P2/Makefile b/P2/Makefile index 2efb28f8200830dfbb3b1ab1dec6c068aeb9e0a6..0228e8f5b6f18e38f953776a7dfa3b7bec06f73f 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 c077b557907bddffa05fc5559b88a4eada57ec83..8731c49621e8d8b9666ce3114d994d9347be79dd 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();