Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
573af921
Commit
573af921
authored
Dec 13, 2012
by
Thomas Jahns
🤸
Browse files
Assign negative IDs to RPC entries.
* This will later ease distinguishing both in the MPI window index.
parent
06feab31
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/pio_interface.c
View file @
573af921
...
...
@@ -521,8 +521,8 @@ void pioBufferFuncCall(int funcID, int argc, ... )
int
tokenSep
=
SEPARATOR
,
tokenFuncCall
=
FUNCCALL
;
size_t
size
=
0
;
xassert
(
funcID
>=
0
&&
funcID
<
nFuncs
);
xdebug
(
"%s, func: %s"
,
"START"
,
funcMap
[
funcID
]);
xassert
(
funcID
>=
MINFUNCID
&&
funcID
<
=
MAXFUNCID
);
xdebug
(
"%s, func: %s"
,
"START"
,
funcMap
[
(
-
1
-
funcID
)
]);
if
(
rankGlob
!=
root
)
return
;
...
...
@@ -566,7 +566,7 @@ void pioBufferFuncCall(int funcID, int argc, ... )
sizeof
(
tokenSep
));
}
xdebug
(
"WROTE FUNCTION CALL IN BUFFER OF WINS: %s, streamID=%d"
,
funcMap
[
funcID
],
streamID
);
funcMap
[
(
-
1
-
funcID
)
],
streamID
);
}
break
;
case
STREAMOPEN
:
...
...
@@ -611,7 +611,7 @@ void pioBufferFuncCall(int funcID, int argc, ... )
xdebug
(
"WROTE FUNCTION CALL IN BUFFER OF WINS: %s, filenamesz=%zu,"
" filename=%s, filetype=%d"
,
funcMap
[
funcID
],
filenamesz
,
filename
,
filetype
);
funcMap
[
(
-
1
-
funcID
)
],
filenamesz
,
filename
,
filetype
);
}
break
;
case
STREAMDEFVLIST
:
...
...
@@ -648,7 +648,7 @@ void pioBufferFuncCall(int funcID, int argc, ... )
xdebug
(
"WROTE FUNCTION CALL IN BUFFER OF WINS: %s, streamID=%d,"
" vlistID=%d"
,
funcMap
[
funcID
],
streamID
,
vlistID
);
funcMap
[
(
-
1
-
funcID
)
],
streamID
,
vlistID
);
}
break
;
default:
...
...
src/pio_rpc.h
View file @
573af921
...
...
@@ -42,8 +42,8 @@ enum
#define MAXWINBUFFERSIZE ((size_t)512 * 1024 * 1024)
enum
{
nFuncs
=
3
,
STREAMOPEN
=
0
,
STREAMDEFVLIST
=
1
,
STREAMCLOSE
=
2
};
enum
{
MAXDATAFILENAME
=
256
,
MINFUNCID
=
STREAM
OPEN
,
MAXFUNCID
=
STREAM
CLOSE
};
enum
{
nFuncs
=
3
,
STREAMOPEN
=
-
1
,
STREAMDEFVLIST
=
-
2
,
STREAMCLOSE
=
-
3
};
enum
{
MAXDATAFILENAME
=
256
,
MINFUNCID
=
STREAM
CLOSE
,
MAXFUNCID
=
STREAM
OPEN
};
extern
char
*
funcMap
[
nFuncs
];
void
rpcUnpackResources
(
char
*
,
int
,
MPI_Comm
);
...
...
src/pio_server.c
View file @
573af921
...
...
@@ -182,7 +182,7 @@ static
streamClose
(
streamID
);
xdebug
(
"READ FUNCTION CALL FROM WIN: %s, streamID=%d,"
" closed stream"
,
funcMap
[
funcID
],
streamID
);
funcMap
[
(
-
1
-
funcID
)
],
streamID
);
}
break
;
case
STREAMOPEN
:
...
...
@@ -204,7 +204,7 @@ static
streamID
=
streamOpenWrite
(
filename
,
filetype
);
xdebug
(
"READ FUNCTION CALL FROM WIN: %s, filenamesz=%zu,"
" filename=%s, filetype=%d, OPENED STREAM %d"
,
funcMap
[
funcID
],
filenamesz
,
filename
,
funcMap
[
(
-
1
-
funcID
)
],
filenamesz
,
filename
,
filetype
,
streamID
);
free
(
filename
);
}
...
...
@@ -220,7 +220,7 @@ static
streamDefVlist
(
streamID
,
vlistID
);
xdebug
(
"READ FUNCTION CALL FROM WIN: %s, streamID=%d,"
" vlistID=%d, called streamDefVlist ()."
,
funcMap
[
funcID
],
streamID
,
vlistID
);
funcMap
[
(
-
1
-
funcID
)
],
streamID
,
vlistID
);
}
break
;
default:
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment