Sending - Receiving Messages
aliardaeker opened this issue · 4 comments
aliardaeker commented
Hello,
I am trying to implement Mattern`s GVT algorithm for my model and for this I defined a vector and a counter in each PE. Vector holds how many messages PE sent to other processors and counter holds how many messages it received from any of the processors.
Now my question is exactly where in the repository the sending and receiving messages take place? I thought it is tw_event_send function of tw_event.c but I am not sure. If it is so where is the tw_event_receive?
Thank you.
carothersc-zz commented
Hi Ali - so there is no tw_event_recieve function like tw_event_send. That
is a model level function
and while models can schedule events into the future they can't directly
recieve them.
Where you want to probably insert a version of Mattern's GVT algorithm is
in the GVT routines
and then use the MPI network layer to send message. See the network-mpi.c
- you'll need to add
some new message types or fields to the event to support Mattern's coloring
of messages from "red" to "white" and back.
Happy coding,
Chris
…On Tue, Jun 20, 2017 at 11:51 AM, Ali Arda Eker ***@***.***> wrote:
Hello,
I am trying to implement Mattern`s GVT algorithm for my model and for this
I defined a vector and a counter in each PE. Vector holds how many messages
PE sent to other processors and counter holds how many messages it received
from any of the processors.
Now my question is exactly where in the repository the sending and
receiving messages take place? I thought it is tw_event_send function of
tw_event.c but I am not sure. If it is so where is the tw_event_receive?
Thank you.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<https://github.com/carothersc/ROSS/issues/119>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA9Uk_TVhehSxZDOs3tEBPo_GZvWneU4ks5sF-p7gaJpZM4N_yoQ>
.
--
----------------------------------------------------------------------------------------------
Christopher D. Carothers
Director, Center for Computational Innovations
Professor, Department of Computer Science
Rensselaer Polytechnic Institute
110 8th Street
Troy, New York 12180-3590
e-mail: chris.carothers@gmail.com
web page: www.cs.rpi.edu/~chrisc <http://www.cs.rpi.edu/%7Echrisc>
phone: (518) 276-2930
fax: (518) 276-4033
----------------------------------------------------------------------------------------------
aliardaeker commented
Hello Prof.
Actually I added 2 files which are gvt-mattern.h and gvt-mattern.c that has
step1 and step2 to compute the GVT value. And I was changing ross-types`
tw_pe struct to add necessary fields such as color, receiving counter and
sending vector. And I believe I can modify tw_net_read and tw_net_send in
network-mpi.c to compute number of white and red messages received and
sent. Do you think I am on the right track or need to spend more time to
understand ROSS?
Thank you,
Sincerely,
Ali.
On Tue, Jun 20, 2017 at 12:38 PM, Chris Carothers <notifications@github.com>
wrote:
… Hi Ali - so there is no tw_event_recieve function like tw_event_send. That
is a model level function
and while models can schedule events into the future they can't directly
recieve them.
Where you want to probably insert a version of Mattern's GVT algorithm is
in the GVT routines
and then use the MPI network layer to send message. See the network-mpi.c
- you'll need to add
some new message types or fields to the event to support Mattern's coloring
of messages from "red" to "white" and back.
Happy coding,
Chris
On Tue, Jun 20, 2017 at 11:51 AM, Ali Arda Eker ***@***.***>
wrote:
> Hello,
>
> I am trying to implement Mattern`s GVT algorithm for my model and for
this
> I defined a vector and a counter in each PE. Vector holds how many
messages
> PE sent to other processors and counter holds how many messages it
received
> from any of the processors.
>
> Now my question is exactly where in the repository the sending and
> receiving messages take place? I thought it is tw_event_send function of
> tw_event.c but I am not sure. If it is so where is the tw_event_receive?
>
> Thank you.
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/carothersc/ROSS/issues/119>, or mute the thread
> <https://github.com/notifications/unsubscribe-
auth/AA9Uk_TVhehSxZDOs3tEBPo_GZvWneU4ks5sF-p7gaJpZM4N_yoQ>
> .
>
--
------------------------------------------------------------
----------------------------------
Christopher D. Carothers
Director, Center for Computational Innovations
Professor, Department of Computer Science
Rensselaer Polytechnic Institute
110 8th Street
Troy, New York 12180-3590
e-mail: ***@***.***
web page: www.cs.rpi.edu/~chrisc <http://www.cs.rpi.edu/%7Echrisc>
phone: (518) 276-2930
fax: (518) 276-4033
------------------------------------------------------------
----------------------------------
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/carothersc/ROSS/issues/119#issuecomment-309816838>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ARIv3U68HUCztI7_W2BElbjp2ThrASOxks5sF_WdgaJpZM4N_yoQ>
.
carothersc-zz commented
Perfect - Yes, those are the right routine to modify.
Chris
On Tue, Jun 20, 2017 at 1:13 PM, Ali Arda Eker <notifications@github.com>
wrote:
… Hello Prof.
Actually I added 2 files which are gvt-mattern.h and gvt-mattern.c that has
step1 and step2 to compute the GVT value. And I was changing ross-types`
tw_pe struct to add necessary fields such as color, receiving counter and
sending vector. And I believe I can modify tw_net_read and tw_net_send in
network-mpi.c to compute number of white and red messages received and
sent. Do you think I am on the right track or need to spend more time to
understand ROSS?
Thank you,
Sincerely,
Ali.
On Tue, Jun 20, 2017 at 12:38 PM, Chris Carothers <
***@***.***>
wrote:
> Hi Ali - so there is no tw_event_recieve function like tw_event_send.
That
> is a model level function
> and while models can schedule events into the future they can't directly
> recieve them.
>
> Where you want to probably insert a version of Mattern's GVT algorithm is
> in the GVT routines
> and then use the MPI network layer to send message. See the network-mpi.c
> - you'll need to add
> some new message types or fields to the event to support Mattern's
coloring
> of messages from "red" to "white" and back.
>
> Happy coding,
> Chris
>
>
>
> On Tue, Jun 20, 2017 at 11:51 AM, Ali Arda Eker <
***@***.***>
> wrote:
>
> > Hello,
> >
> > I am trying to implement Mattern`s GVT algorithm for my model and for
> this
> > I defined a vector and a counter in each PE. Vector holds how many
> messages
> > PE sent to other processors and counter holds how many messages it
> received
> > from any of the processors.
> >
> > Now my question is exactly where in the repository the sending and
> > receiving messages take place? I thought it is tw_event_send function
of
> > tw_event.c but I am not sure. If it is so where is the
tw_event_receive?
> >
> > Thank you.
> >
> > —
> > You are receiving this because you are subscribed to this thread.
> > Reply to this email directly, view it on GitHub
> > <https://github.com/carothersc/ROSS/issues/119>, or mute the thread
> > <https://github.com/notifications/unsubscribe-
> auth/AA9Uk_TVhehSxZDOs3tEBPo_GZvWneU4ks5sF-p7gaJpZM4N_yoQ>
> > .
> >
>
>
>
> --
> ------------------------------------------------------------
> ----------------------------------
> Christopher D. Carothers
>
> Director, Center for Computational Innovations
> Professor, Department of Computer Science
> Rensselaer Polytechnic Institute
> 110 8th Street
> Troy, New York 12180-3590
>
> e-mail: ***@***.***
> web page: www.cs.rpi.edu/~chrisc <http://www.cs.rpi.edu/%7Echrisc>
> phone: (518) 276-2930
> fax: (518) 276-4033
> ------------------------------------------------------------
> ----------------------------------
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/carothersc/ROSS/issues/119#issuecomment-309816838>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/ARIv3U68HUCztI7_
W2BElbjp2ThrASOxks5sF_WdgaJpZM4N_yoQ>
> .
>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://github.com/carothersc/ROSS/issues/119#issuecomment-309826366>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA9UkxOmQrs2WCHsBc-kldzRPwvj7uWYks5sF_3LgaJpZM4N_yoQ>
.
--
----------------------------------------------------------------------------------------------
Christopher D. Carothers
Director, Center for Computational Innovations
Professor, Department of Computer Science
Rensselaer Polytechnic Institute
110 8th Street
Troy, New York 12180-3590
e-mail: chris.carothers@gmail.com
web page: www.cs.rpi.edu/~chrisc <http://www.cs.rpi.edu/%7Echrisc>
phone: (518) 276-2930
fax: (518) 276-4033
----------------------------------------------------------------------------------------------
aliardaeker commented
All right. Thank you very much Prof !
On Tue, Jun 20, 2017 at 1:24 PM, Chris Carothers <notifications@github.com>
wrote:
… Perfect - Yes, those are the right routine to modify.
Chris
On Tue, Jun 20, 2017 at 1:13 PM, Ali Arda Eker ***@***.***>
wrote:
> Hello Prof.
>
> Actually I added 2 files which are gvt-mattern.h and gvt-mattern.c that
has
> step1 and step2 to compute the GVT value. And I was changing ross-types`
> tw_pe struct to add necessary fields such as color, receiving counter and
> sending vector. And I believe I can modify tw_net_read and tw_net_send in
> network-mpi.c to compute number of white and red messages received and
> sent. Do you think I am on the right track or need to spend more time to
> understand ROSS?
>
> Thank you,
>
> Sincerely,
>
> Ali.
>
>
> On Tue, Jun 20, 2017 at 12:38 PM, Chris Carothers <
> ***@***.***>
> wrote:
>
> > Hi Ali - so there is no tw_event_recieve function like tw_event_send.
> That
> > is a model level function
> > and while models can schedule events into the future they can't
directly
> > recieve them.
> >
> > Where you want to probably insert a version of Mattern's GVT algorithm
is
> > in the GVT routines
> > and then use the MPI network layer to send message. See the
network-mpi.c
> > - you'll need to add
> > some new message types or fields to the event to support Mattern's
> coloring
> > of messages from "red" to "white" and back.
> >
> > Happy coding,
> > Chris
> >
> >
> >
> > On Tue, Jun 20, 2017 at 11:51 AM, Ali Arda Eker <
> ***@***.***>
> > wrote:
> >
> > > Hello,
> > >
> > > I am trying to implement Mattern`s GVT algorithm for my model and for
> > this
> > > I defined a vector and a counter in each PE. Vector holds how many
> > messages
> > > PE sent to other processors and counter holds how many messages it
> > received
> > > from any of the processors.
> > >
> > > Now my question is exactly where in the repository the sending and
> > > receiving messages take place? I thought it is tw_event_send function
> of
> > > tw_event.c but I am not sure. If it is so where is the
> tw_event_receive?
> > >
> > > Thank you.
> > >
> > > —
> > > You are receiving this because you are subscribed to this thread.
> > > Reply to this email directly, view it on GitHub
> > > <https://github.com/carothersc/ROSS/issues/119>, or mute the thread
> > > <https://github.com/notifications/unsubscribe-
> > auth/AA9Uk_TVhehSxZDOs3tEBPo_GZvWneU4ks5sF-p7gaJpZM4N_yoQ>
> > > .
> > >
> >
> >
> >
> > --
> > ------------------------------------------------------------
> > ----------------------------------
> > Christopher D. Carothers
> >
> > Director, Center for Computational Innovations
> > Professor, Department of Computer Science
> > Rensselaer Polytechnic Institute
> > 110 8th Street
> > Troy, New York 12180-3590
> >
> > e-mail: ***@***.***
> > web page: www.cs.rpi.edu/~chrisc <http://www.cs.rpi.edu/%7Echrisc>
> > phone: (518) 276-2930
> > fax: (518) 276-4033
> > ------------------------------------------------------------
> > ----------------------------------
> >
> > —
> > You are receiving this because you authored the thread.
> > Reply to this email directly, view it on GitHub
> > <https://github.com/carothersc/ROSS/issues/119#issuecomment-309816838
>,
> > or mute the thread
> > <https://github.com/notifications/unsubscribe-auth/ARIv3U68HUCztI7_
> W2BElbjp2ThrASOxks5sF_WdgaJpZM4N_yoQ>
> > .
> >
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <https://github.com/carothersc/ROSS/issues/119#issuecomment-309826366>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AA9UkxOmQrs2WCHsBc-
kldzRPwvj7uWYks5sF_3LgaJpZM4N_yoQ>
> .
>
--
------------------------------------------------------------
----------------------------------
Christopher D. Carothers
Director, Center for Computational Innovations
Professor, Department of Computer Science
Rensselaer Polytechnic Institute
110 8th Street
Troy, New York 12180-3590
e-mail: ***@***.***
web page: www.cs.rpi.edu/~chrisc <http://www.cs.rpi.edu/%7Echrisc>
phone: (518) 276-2930
fax: (518) 276-4033
------------------------------------------------------------
----------------------------------
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/carothersc/ROSS/issues/119#issuecomment-309829108>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ARIv3f8xY4JgLLTYONLw-_wiZD_Tf3ztks5sGAAxgaJpZM4N_yoQ>
.