o-du/phy
Intel O-RAN/X-RAN Generated Doxygen Documentation
Data Structures | Functions | Variables
compander_functional.cc File Reference
#include "common.hpp"
#include "xran_fh_o_du.h"
#include "xran_compression.h"
#include "xran_compression.hpp"
#include <stdint.h>
#include <random>
#include <algorithm>
#include <iterator>
#include <iostream>
#include <cstring>
Include dependency graph for compander_functional.cc:

Go to the source code of this file.

Data Structures

class  BfpCheck
 
class  BfpPerf
 
class  BfpPerfEx
 

Functions

template<typename T >
int checkData (T *inVec1, T *inVec2, int numVals)
 
template int checkData (int8_t *, int8_t *, int)
 
template int checkData (int16_t *, int16_t *, int)
 
int checkDataApprox (int16_t *inVec1, int16_t *inVec2, int numVals)
 
 TEST_P (BfpCheck, AVX512_12bit)
 
 TEST_P (BfpCheck, AVX512_10bit)
 
 TEST_P (BfpCheck, AVX512_9bit)
 
 TEST_P (BfpCheck, AVX512_8bit)
 
 TEST_P (BfpPerf, AVX512_8bit_compression)
 
 TEST_P (BfpPerf, AVX512_8bit_decompression)
 
 TEST_P (BfpPerf, AVX512_9bit_compression)
 
 TEST_P (BfpPerf, AVX512_9bit_decompression)
 
 TEST_P (BfpPerf, AVX512_10bit_compression)
 
 TEST_P (BfpPerf, AVX512_10bit_decompression)
 
 TEST_P (BfpPerf, AVX512_12bit_compression)
 
 TEST_P (BfpPerf, AVX512_12bit_decompression)
 
 TEST_P (BfpCheck, AVX512_sweep_xranlib)
 
 TEST_P (BfpPerfEx, AVX512_Comp)
 
 TEST_P (BfpPerfEx, AVX512_DeComp)
 
 INSTANTIATE_TEST_CASE_P (UnitTest, BfpCheck, testing::ValuesIn(get_sequence(BfpCheck::get_number_of_cases("bfp_functional"))))
 
 INSTANTIATE_TEST_CASE_P (UnitTest, BfpPerf, testing::ValuesIn(get_sequence(BfpPerf::get_number_of_cases("bfp_performace"))))
 
 INSTANTIATE_TEST_CASE_P (UnitTest, BfpPerfEx, testing::ValuesIn(get_sequence(BfpPerf::get_number_of_cases("bfp_performace_ex"))))
 

Variables

const std::string module_name = "bfp"
 
CACHE_ALIGNED int16_t loc_dataExpandedIn [288 *BlockFloatCompander::k_numREReal]
 
CACHE_ALIGNED int16_t loc_dataExpandedRes [288 *BlockFloatCompander::k_numREReal]
 
CACHE_ALIGNED uint8_t loc_dataCompressedDataOut [2 *288 *BlockFloatCompander::k_numREReal]
 

Function Documentation

◆ checkData() [1/3]

int checkData ( T *  inVec1,
T *  inVec2,
int  numVals 
)

Definition at line 34 of file compander_functional.cc.

Here is the caller graph for this function:

◆ checkData() [2/3]

template int checkData ( int8_t *  ,
int8_t *  ,
int   
)

◆ checkData() [3/3]

template int checkData ( int16_t *  ,
int16_t *  ,
int   
)

◆ checkDataApprox()

int checkDataApprox ( int16_t *  inVec1,
int16_t *  inVec2,
int  numVals 
)

Definition at line 55 of file compander_functional.cc.

Here is the caller graph for this function:

◆ INSTANTIATE_TEST_CASE_P() [1/3]

INSTANTIATE_TEST_CASE_P ( UnitTest  ,
BfpCheck  ,
testing::ValuesIn(get_sequence(BfpCheck::get_number_of_cases("bfp_functional")))   
)
Here is the caller graph for this function:

◆ INSTANTIATE_TEST_CASE_P() [2/3]

INSTANTIATE_TEST_CASE_P ( UnitTest  ,
BfpPerf  ,
testing::ValuesIn(get_sequence(BfpPerf::get_number_of_cases("bfp_performace")))   
)

◆ INSTANTIATE_TEST_CASE_P() [3/3]

INSTANTIATE_TEST_CASE_P ( UnitTest  ,
BfpPerfEx  ,
testing::ValuesIn(get_sequence(BfpPerf::get_number_of_cases("bfp_performace_ex")))   
)

◆ TEST_P() [1/15]

TEST_P ( BfpCheck  ,
AVX512_12bit   
)

Definition at line 176 of file compander_functional.cc.

Here is the call graph for this function:

◆ TEST_P() [2/15]

TEST_P ( BfpCheck  ,
AVX512_10bit   
)

Definition at line 225 of file compander_functional.cc.

Here is the call graph for this function:

◆ TEST_P() [3/15]

TEST_P ( BfpCheck  ,
AVX512_9bit   
)

Definition at line 276 of file compander_functional.cc.

Here is the call graph for this function:

◆ TEST_P() [4/15]

TEST_P ( BfpCheck  ,
AVX512_8bit   
)

Definition at line 326 of file compander_functional.cc.

Here is the call graph for this function:

◆ TEST_P() [5/15]

TEST_P ( BfpPerf  ,
AVX512_8bit_compression   
)

Definition at line 375 of file compander_functional.cc.

Here is the call graph for this function:

◆ TEST_P() [6/15]

TEST_P ( BfpPerf  ,
AVX512_8bit_decompression   
)

Definition at line 426 of file compander_functional.cc.

Here is the call graph for this function:

◆ TEST_P() [7/15]

TEST_P ( BfpPerf  ,
AVX512_9bit_compression   
)

Definition at line 479 of file compander_functional.cc.

Here is the call graph for this function:

◆ TEST_P() [8/15]

TEST_P ( BfpPerf  ,
AVX512_9bit_decompression   
)

Definition at line 531 of file compander_functional.cc.

Here is the call graph for this function:

◆ TEST_P() [9/15]

TEST_P ( BfpPerf  ,
AVX512_10bit_compression   
)

Definition at line 583 of file compander_functional.cc.

Here is the call graph for this function:

◆ TEST_P() [10/15]

TEST_P ( BfpPerf  ,
AVX512_10bit_decompression   
)

Definition at line 634 of file compander_functional.cc.

Here is the call graph for this function:

◆ TEST_P() [11/15]

TEST_P ( BfpPerf  ,
AVX512_12bit_compression   
)

Definition at line 685 of file compander_functional.cc.

Here is the call graph for this function:

◆ TEST_P() [12/15]

TEST_P ( BfpPerf  ,
AVX512_12bit_decompression   
)

Definition at line 737 of file compander_functional.cc.

Here is the call graph for this function:

◆ TEST_P() [13/15]

TEST_P ( BfpCheck  ,
AVX512_sweep_xranlib   
)

Definition at line 788 of file compander_functional.cc.

Here is the call graph for this function:

◆ TEST_P() [14/15]

TEST_P ( BfpPerfEx  ,
AVX512_Comp   
)

Definition at line 867 of file compander_functional.cc.

Here is the call graph for this function:

◆ TEST_P() [15/15]

TEST_P ( BfpPerfEx  ,
AVX512_DeComp   
)

Definition at line 872 of file compander_functional.cc.

Here is the call graph for this function:

Variable Documentation

◆ loc_dataCompressedDataOut

CACHE_ALIGNED uint8_t loc_dataCompressedDataOut[2 *288 *BlockFloatCompander::k_numREReal]

Definition at line 103 of file compander_functional.cc.

◆ loc_dataExpandedIn

CACHE_ALIGNED int16_t loc_dataExpandedIn[288 *BlockFloatCompander::k_numREReal]

Definition at line 101 of file compander_functional.cc.

◆ loc_dataExpandedRes

CACHE_ALIGNED int16_t loc_dataExpandedRes[288 *BlockFloatCompander::k_numREReal]

Definition at line 102 of file compander_functional.cc.

◆ module_name

const std::string module_name = "bfp"

Definition at line 31 of file compander_functional.cc.