Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Y
yaxt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dkrz-sw
yaxt
Commits
b2ae926f
Commit
b2ae926f
authored
5 years ago
by
Thomas Jahns
Browse files
Options
Downloads
Patches
Plain Diff
Fix incorrect work-around.
parent
8396175d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#2647
passed
5 years ago
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/test_xmap_all2all_fail.c
+2
-5
2 additions, 5 deletions
tests/test_xmap_all2all_fail.c
tests/test_xmap_all2all_fail_f.f90
+3
-0
3 additions, 0 deletions
tests/test_xmap_all2all_fail_f.f90
with
5 additions
and
5 deletions
tests/test_xmap_all2all_fail.c
+
2
−
5
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
();
...
...
This diff is collapsed.
Click to expand it.
tests/test_xmap_all2all_fail_f.f90
+
3
−
0
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
)
...
...
This diff is collapsed.
Click to expand it.
Sergey Kosukhin
@m300488
mentioned in issue
#2 (closed)
·
3 years ago
mentioned in issue
#2 (closed)
mentioned in issue #2
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment