Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Thomas Jahns
yaxt
Commits
b2ae926f
Commit
b2ae926f
authored
Apr 27, 2020
by
Thomas Jahns
🤸
Browse files
Fix incorrect work-around.
parent
8396175d
Pipeline
#2646
passed with stages
in 39 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
tests/test_xmap_all2all_fail.c
View file @
b2ae926f
...
...
@@ -158,11 +158,8 @@ xfail_abort(MPI_Comm comm, const char *msg, const char *source, int line)
{
fprintf
(
stderr
,
"Fatal error in %s, line %d: %s
\n
"
,
source
,
line
,
msg
);
#ifdef XT_NEED_MPI_ABORT_WORK_AROUND
int
fd
=
open
(
"test_xmap_all2all_fail.result.txt"
,
O_WRONLY
|
O_TRUNC
|
O_CREAT
|
O_NOCTTY
,
0777
);
static
const
char
exit_msg
[]
=
"exited with code 3
\n
"
;
write
(
fd
,
exit_msg
,
sizeof
(
exit_msg
));
close
(
fd
);
static
const
char
exit_msg
[]
=
"MPI_Abort(0xdeadbeef, 3)
\n
"
;
write
(
STDERR_FILENO
,
exit_msg
,
sizeof
(
exit_msg
));
#endif
MPI_Abort
(
comm
,
3
);
abort
();
...
...
tests/test_xmap_all2all_fail_f.f90
View file @
b2ae926f
...
...
@@ -174,6 +174,9 @@ SUBROUTINE xfail_abort(comm, msg, source, line)
CHARACTER
(
len
=*
),
INTENT
(
in
)
::
msg
,
source
INTEGER
::
ierror
WRITE
(
0
,
'(4a,i0)'
)
msg
,
' at '
,
source
,
', line '
,
line
#ifdef XT_NEED_MPI_ABORT_WORK_AROUND
WRITE
(
0
,
'(a)'
)
'MPI_Abort(0xdeadbeef, 3)'
#endif
FLUSH
(
0
)
CALL
mpi_abort
(
comm
,
3
,
ierror
)
CALL
posix_exit
(
3_c_int
)
...
...
Write
Preview
Markdown
is supported
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