Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Y
yaxt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dkrz-sw
yaxt
Commits
b2ae926f
Commit
b2ae926f
authored
Apr 27, 2020
by
Thomas Jahns
🤸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix incorrect work-around.
parent
8396175d
Pipeline
#2647
passed with stages
in 36 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
tests/test_xmap_all2all_fail.c
tests/test_xmap_all2all_fail.c
+2
-5
tests/test_xmap_all2all_fail_f.f90
tests/test_xmap_all2all_fail_f.f90
+3
-0
No files found.
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