Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Iker Martín Álvarez
MPICH_OFI_mpi_intercomm_merge_bug
Commits
f612e0f0
Commit
f612e0f0
authored
Jun 14, 2024
by
iker_martin
Browse files
First commit
parents
Changes
2
Hide whitespace changes
Inline
Side-by-side
BaseCode.c
0 → 100644
View file @
f612e0f0
#include <stdio.h>
#include <stdlib.h>
#include <mpi.h>
#define FIRST 0
#define SECOND 1
int
main
(
int
argc
,
char
*
argv
[])
{
MPI_Init
(
&
argc
,
&
argv
);
MPI_Comm
spawn
,
new_comm
;
MPI_Comm_get_parent
(
&
spawn
);
if
(
spawn
==
MPI_COMM_NULL
)
{
int
num_c
=
atoi
(
argv
[
1
]);
MPI_Comm_spawn
(
argv
[
0
],
MPI_ARGV_NULL
,
num_c
,
MPI_INFO_NULL
,
0
,
MPI_COMM_WORLD
,
&
spawn
,
MPI_ERRCODES_IGNORE
);
MPI_Intercomm_merge
(
spawn
,
FIRST
,
&
new_comm
);
}
else
{
MPI_Intercomm_merge
(
spawn
,
SECOND
,
&
new_comm
);
MPI_Barrier
(
MPI_COMM_WORLD
);
}
MPI_Finalize
();
}
README.md
0 → 100644
View file @
f612e0f0
# MPICH_OFI_mpi_probe_bug
This project is for storing a bug related to the usage of MPI Spawn + MPI Intercomm Merge.
It can be found in the following URL:
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment