Agora
1.2.0
Agora project
|
Go to the documentation of this file.
16 #include <system_error>
50 size_t symbol_id,
size_t ant_id);
110 #endif // SIMULATOR_H_
double * frame_end_tx_
Definition: simulator.h:102
DEFINE_uint64(num_threads, 4, "Number of sender threads")
double * frame_end_receive_
Definition: simulator.h:100
void PrintPerFrameDone(PrintType print_type, size_t frame_id)
Definition: simulator.cc:187
void Stop()
Definition: simulator.cc:54
Definition: concurrentqueue.h:630
void Running(bool value)
Definition: config.h:33
static const size_t kMessageQueueSize
Definition: simulator.cc:14
uint32_t frame_id_
Definition: message.h:168
void Calloc(size_t dim1, size_t dim2, Agora_memory::Alignment_t alignment)
Definition: memory_manage.h:45
void PinToCoreWithOffset(ThreadType thread_type, size_t core_offset, size_t thread_id, bool allow_reuse, bool verbose)
Definition: utils.cc:157
frame_count
Definition: parse_dl_file.m:28
PrintType
Definition: symbols.h:96
auto printf(const S &fmt, const T &... args) -> int
Definition: printf.h:631
Agora project version configuration file.
static void FreeBuffer1d(T **buffer)
Definition: memory_manage.h:116
Declaration file for the sender class.
static const bool kDebugPrintSimSetup
Definition: simulator.cc:12
void UpdateFrameCount(int *frame_count)
Definition: simulator.cc:148
Table< double > frame_start_
Definition: simulator.h:98
~Simulator()
Definition: simulator.cc:49
size_t try_dequeue_bulk(It itemFirst, size_t max)
Definition: concurrentqueue.h:1210
const std::string & GetAgoraProjectVersion()
Definition: version_config.h:10
static constexpr size_t kFrameWnd
Definition: symbols.h:18
#define AGORA_LOG_INIT()
Definition: logger.h:35
void * PaddedAlignedAlloc(Alignment_t alignment, size_t size)
Definition: memory_manage.cc:15
void Start()
Definition: simulator.cc:61
static double GetTimeUs()
Definition: gettime.h:14
static constexpr size_t kTransposeBlockSize
Definition: simulator.h:33
static bool GotExitSignal()
Definition: signal_handler.cc:23
size_t BsAntNum() const
Definition: config.h:35
uint32_t ant_id_
Definition: message.h:171
static constexpr size_t kDequeueBulkSizeSingle
Definition: simulator.h:38
std::unique_ptr< Receiver > receiver_
Definition: simulator.h:62
#define TOSTRING(x)
Definition: symbols.h:14
const FrameStats & Frame() const
Definition: config.h:340
Definition: message.h:227
void InitializeQueues()
Definition: simulator.cc:204
Definition: simulator.h:29
static void AllocBuffer1d(T **buffer, U dim, Agora_memory::Alignment_t alignment, int init_zero)
Definition: memory_manage.h:105
Simulator(Config *cfg, size_t task_thread_num, size_t core_offset, size_t sender_delay)
Definition: simulator.cc:16
filename
Definition: parse_all_dl.m:14
size_t socket_tx_thread_num_
Definition: simulator.h:56
moodycamel::ProducerToken ** rx_ptoks_ptr_
Definition: simulator.h:93
Definition: message.h:142
size_t socket_rx_thread_num_
Definition: simulator.h:55
Self defined functions for message storage and passing.
void Free()
Definition: memory_manage.h:84
for i
Definition: generate_data.m:107
double * frame_start_receive_
Definition: simulator.h:99
moodycamel::ConcurrentQueue< EventData > complete_task_queue_
Definition: simulator.h:90
void UpdateRxCounters(size_t frame_id, size_t frame_id_in_buffer, size_t symbol_id, size_t ant_id)
Definition: simulator.cc:155
auto fprintf(std::FILE *f, const S &fmt, const T &... args) -> int
Definition: printf.h:607
size_t socket_buffer_size_
Definition: simulator.h:77
Definition: message.h:164
uint32_t symbol_id_
Definition: message.h:169
int main(int argc, char *argv[])
Definition: sender_cli.cc:25
size_t FramesToTest() const
Definition: config.h:309
static constexpr size_t kNumStatsFrames
Definition: symbols.h:300
size_t task_thread_num_
Definition: simulator.h:54
static constexpr bool kDebugPrintPerFrameStart
Definition: symbols.h:197
Packet * RawPacket()
Definition: message.h:213
DEFINE_string(server_mac_addr, "ff:ff:ff:ff:ff:ff", "MAC address of the remote Agora server to send data to")
static constexpr size_t kDequeueBulkSize
Definition: simulator.h:37
Table< char > socket_buffer_
Definition: simulator.h:76
size_t NumDLSyms() const
Definition: framestats.cc:83
SymbolType GetSymbolType(size_t symbol_id) const
Return the symbol type of this symbol in this frame.
Definition: config.cc:1557
moodycamel::ConcurrentQueue< EventData > message_queue_
Definition: simulator.h:88
Declaration file for the simulator class.
size_t NumDataSyms() const
Definition: framestats.cc:101
void InitializeBuffers()
Definition: simulator.cc:228
#define AGORA_LOG_SHUTDOWN()
Definition: logger.h:36
Declaration file for the receiver class.
void PrintCoreAssignmentSummary()
Definition: utils.cc:85
Definition: message.h:186
double * frame_start_tx_
Definition: simulator.h:101
std::unique_ptr< Sender > sender_
Definition: simulator.h:63
Declaration file for the configuration class which importants json configuration values into class va...
SymbolType
Definition: symbols.h:261
size_t core_offset_
Definition: simulator.h:57
Definition: concurrentqueue.h:695
size_t PacketLength() const
Definition: config.h:238
void FreeQueues()
Definition: simulator.cc:219
Config * config_
Definition: simulator.h:61
frame_duration
Definition: parse_dl_file.m:27
static constexpr size_t kTransposeBlockNum
Definition: simulator.h:34
static constexpr bool kDebugPrintPerFrameDone
Definition: symbols.h:196
void Free()
Definition: message.h:216
void FreeBuffers()
Definition: simulator.cc:249
static const bool kDebugPrintAllRxSymbols
Definition: simulator.cc:11
size_t NumTotalSyms() const
Definition: framestats.cc:93
size_t * rx_counter_packets_
Definition: simulator.h:82
RxPacket * rx_packet_
Definition: message.h:228