Last change
on this file since 167 was
167,
checked in by (none), 14 years ago
|
Simeo: added final project and also older proof of concept code.
We used Git for version control, so look at the Git repo
in SIMEO/Simeo/ for more info.
|
File size:
484 bytes
|
Line | |
---|
1 | #ifndef MPICHANNEL_H |
---|
2 | #define MPICHANNEL_H |
---|
3 | |
---|
4 | #include <mpi.h> |
---|
5 | #include "Channel.h" |
---|
6 | |
---|
7 | |
---|
8 | class MPIChannel : public Channel |
---|
9 | { |
---|
10 | |
---|
11 | private: |
---|
12 | MPI_Comm m_comm; |
---|
13 | int m_dest; |
---|
14 | int m_tag; |
---|
15 | |
---|
16 | public: |
---|
17 | |
---|
18 | MPIChannel(int dest, int tag, MPI_Comm comm); |
---|
19 | ~MPIChannel(); |
---|
20 | |
---|
21 | MPI_Comm getMPIComm(); |
---|
22 | int getDest(); |
---|
23 | int getTag(); |
---|
24 | |
---|
25 | int read(void *buf, channel_datatype_t datatype, size_t count); |
---|
26 | |
---|
27 | int write(const void *buf, channel_datatype_t datatype, size_t count); |
---|
28 | |
---|
29 | int available(); |
---|
30 | |
---|
31 | }; |
---|
32 | |
---|
33 | #endif //MPIChannel |
---|
Note: See
TracBrowser
for help on using the repository browser.