Agora
1.2.0
Agora project
|
#include <gtest/gtest.h>
#include <thread>
#include "concurrentqueue.h"
#include "config.h"
#include "dobeamweights.h"
#include "gettime.h"
#include "utils.h"
Functions | |
void | MasterToWorkerDynamicMaster (Config *cfg, moodycamel::ConcurrentQueue< EventData > &event_queue, moodycamel::ConcurrentQueue< EventData > &complete_task_queue) |
void | MasterToWorkerDynamicWorker (Config *cfg, size_t worker_id, moodycamel::ConcurrentQueue< EventData > &event_queue, moodycamel::ConcurrentQueue< EventData > &complete_task_queue, moodycamel::ProducerToken *ptok, PtrGrid< kFrameWnd, kMaxUEs, complex_float > &csi_buffers, Table< complex_float > &calib_dl_msum_buffer, Table< complex_float > &calib_ul_msum_buffer, Table< complex_float > &calib_dl_buffer, Table< complex_float > &calib_ul_buffer, PtrGrid< kFrameWnd, kMaxDataSCs, complex_float > &ul_beam_matrices, PtrGrid< kFrameWnd, kMaxDataSCs, complex_float > &dl_beam_matrices, PhyStats *phy_stats, Stats *stats) |
TEST (TestZF, VaryingConfig) | |
int | main (int argc, char **argv) |
Variables | |
static constexpr size_t | kNumWorkers = 14 |
static constexpr size_t | kMaxTestNum = 100 |
static constexpr size_t | kMaxItrNum = (1 << 30) |
static constexpr size_t | kAntTestNum = 3 |
static constexpr size_t | kBsAntNums [kAntTestNum] = {32, 16, 48} |
static constexpr size_t | kFrameOffsets [kAntTestNum] = {0, 20, 30} |
std::atomic< size_t > | num_workers_ready_atomic |
int main | ( | int | argc, |
char ** | argv | ||
) |
void MasterToWorkerDynamicMaster | ( | Config * | cfg, |
moodycamel::ConcurrentQueue< EventData > & | event_queue, | ||
moodycamel::ConcurrentQueue< EventData > & | complete_task_queue | ||
) |
void MasterToWorkerDynamicWorker | ( | Config * | cfg, |
size_t | worker_id, | ||
moodycamel::ConcurrentQueue< EventData > & | event_queue, | ||
moodycamel::ConcurrentQueue< EventData > & | complete_task_queue, | ||
moodycamel::ProducerToken * | ptok, | ||
PtrGrid< kFrameWnd, kMaxUEs, complex_float > & | csi_buffers, | ||
Table< complex_float > & | calib_dl_msum_buffer, | ||
Table< complex_float > & | calib_ul_msum_buffer, | ||
Table< complex_float > & | calib_dl_buffer, | ||
Table< complex_float > & | calib_ul_buffer, | ||
PtrGrid< kFrameWnd, kMaxDataSCs, complex_float > & | ul_beam_matrices, | ||
PtrGrid< kFrameWnd, kMaxDataSCs, complex_float > & | dl_beam_matrices, | ||
PhyStats * | phy_stats, | ||
Stats * | stats | ||
) |
TEST | ( | TestZF | , |
VaryingConfig | |||
) |
Test correctness of BsAntNum() values in multi-threaded zeroforcing when BsAntNum() varies in runtime
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
std::atomic<size_t> num_workers_ready_atomic |