This commit is contained in:
Saad Mohsin 2025-09-11 12:23:04 +05:00
parent d6c9f5fe25
commit 2aa6d67112
3 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,5 @@
command to run: docker-compose up --build
# command to run: docker-compose up --build
command to shut down: docker-compose down
# command to shut down: docker-compose down
# Roll numbers: 22i-1601, 22i-1554, 22i-1689

View File

@ -5,9 +5,10 @@
#include <cstdlib> // Required for getenv()
// Roll numbers: 22i-1601, 22i-1554, 22i-1689
// Question 1
int main(int argc, char** argv) {
MPI_Init(&argc, &argv);
MPI_Init(&argc, &argv)
int world_size;
MPI_Comm_size(MPI_COMM_WORLD, &world_size);

View File

@ -5,6 +5,9 @@
#include <cstdlib> // Required for getenv()
#include <string> // Required for std::string
// Roll numbers: 22i-1601, 22i-1554, 22i-1689
// Question 2
int main(int argc, char** argv) {
MPI_Init(&argc, &argv);