Bridge++  Ver. 2.0.2
channel.cpp
Go to the documentation of this file.
1 
14 #include "channel.h"
15 
16 /*
17  std::vector version with the allocator templated
18  this class is a template independent part
19  [5 May 2022 I.Kanamori]
20  */
21 
22 //====================================================================
23 // class Channel_communicator
24 
25 //====================================================================
26 int Channel_communicator::send_init(int count, int idir, int ipm, void *buf)
27 {
28  LOG;
29 
30  assert(ipm == 1 || ipm == -1);
31 
32  return 0;
33 }
34 
35 
36 //====================================================================
37 int Channel_communicator::recv_init(int count, int idir, int ipm, void *buf)
38 {
39  LOG;
40 
41  assert(ipm == 1 || ipm == -1);
42 
43  return 0;
44 }
45 
46 
47 //====================================================================
49 {
50  LOG;
51 }
52 
53 
54 //====================================================================
56 {
57  LOG;
58 }
59 
60 
61 //====================================================================
63 {
64  LOG;
65  return 0;
66 }
67 
68 
69 //====================================================================
71 {
72  LOG;
73  return 0;
74 }
75 
76 
77 //====================================================================
78 // class ChannelSet
79 ChannelSet::ChannelSet(int count)
80 {
81  LOG;
82 }
83 
84 
85 //====================================================================
87 {
88  LOG;
89  return 0;
90 }
91 
92 
93 //====================================================================
95 {
96  LOG;
97  return 0;
98 }
99 
100 
101 //====================================================================
102 int ChannelSet::wait()
103 {
104  LOG;
105  return 0;
106 }
107 
108 
109 //====================================================================
110 // Channel with defaul allocator
111 template class Channel_impl<std::allocator<char> >;
112 
113 //====================================================================
114 //============================================================END=====
ChannelSet::wait
int wait()
collective wait
Definition: channel.cpp:155
ChannelSet::append
int append()
implementation of adding the channel (template independent)
Definition: channel.cpp:86
channel.h
Channel_communicator::recv_init
int recv_init(int count, int idir, int ipm, void *buf)
Definition: channel.cpp:67
ChannelSet::ChannelSet
ChannelSet(int nchannel=8)
constructor. default number of channels is 8 for upward and downward in 4 dimensions.
Definition: channel.cpp:125
Channel_communicator::Channel_communicator
Channel_communicator()
constructor.
Definition: channel.cpp:90
Channel_communicator::send_init
int send_init(int count, int idir, int ipm, void *buf)
Definition: channel.cpp:37
Channel_communicator::wait
int wait()
wait for completion
Definition: channel.cpp:113
ChannelSet::start
int start()
collective start
Definition: channel.cpp:147
Channel_communicator::start
int start()
start asynchronous communication
Definition: channel.cpp:105
LOG
#define LOG
Definition: bridge_defs.h:21
Channel_communicator::~Channel_communicator
virtual ~Channel_communicator()
destructor
Definition: channel.cpp:97
Channel_impl
Definition: channel.h:86