pass argc / argv to MPI_Init
This commit is contained in:
5
main.cpp
5
main.cpp
@@ -2,11 +2,8 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
(void) argc;
|
|
||||||
(void) argv;
|
|
||||||
|
|
||||||
// Initialize the MPI environment
|
// Initialize the MPI environment
|
||||||
MPI_Init(NULL, NULL);
|
MPI_Init(&argc, &argv);
|
||||||
|
|
||||||
// Get the number of processes
|
// Get the number of processes
|
||||||
int world_size;
|
int world_size;
|
||||||
|
Reference in New Issue
Block a user