Commit 9470c019 authored by cucengineer's avatar cucengineer

test nr dlsim fft ok

parent 1bee1d28
......@@ -747,7 +747,8 @@ function main() {
if [ "$SIMUS_PHY" = "1" ] ; then
echo_info "Compiling physical unitary tests simulators"
# TODO: fix: dlsim_tm4 pucchsim prachsim pdcchsim pbchsim mbmssim
simlist="dlsim ulsim ldpctest polartest smallblocktest nr_pbchsim nr_dlschsim nr_ulschsim nr_dlsim nr_ulsim nr_pucchsim nr_prachsim"
simlist="nr_dlsim"
# simlist="dlsim ulsim ldpctest polartest smallblocktest nr_pbchsim nr_dlschsim nr_ulschsim nr_dlsim nr_ulsim nr_pucchsim nr_prachsim"
# simlist="ldpctest"
for f in $simlist ; do
compilations \
......
......@@ -139,6 +139,16 @@ int nr_slot_fep(PHY_VARS_NR_UE *ue,
(int16_t *)&common_vars->common_vars_rx_data_per_thread[proc->thread_id].rxdataF[aa][frame_parms->ofdm_symbol_size*symbol],
1);
static int cu_2048 = 1;
if(cu_2048==1)
{
LOG_M("FFT0.m","input",rxdata_ptr,2048,1,3);
LOG_M("FFT1.m","output",(int16_t *)&common_vars->common_vars_rx_data_per_thread[proc->thread_id].rxdataF[aa][frame_parms->ofdm_symbol_size*symbol],2048,1,1);
cudft2048(rxdata_ptr,(int16_t *)&common_vars->common_vars_rx_data_per_thread[proc->thread_id].rxdataF[aa][frame_parms->ofdm_symbol_size*symbol],1);
LOG_M("cuFFT0.m","input",rxdata_ptr,2048,1,3);
LOG_M("cuFFT1.m","output",(int16_t *)&common_vars->common_vars_rx_data_per_thread[proc->thread_id].rxdataF[aa][frame_parms->ofdm_symbol_size*symbol],2048,1,1);
cu_2048++;
}
#if UE_TIMING_TRACE
stop_meas(&ue->rx_dft_stats);
#endif
......
......@@ -69,6 +69,9 @@
#include <openair2/LAYER2/MAC/mac_vars.h>
#include <openair2/RRC/LTE/rrc_vars.h>
#define LDPC_LOADER
#include "PHY/CODING/nrLDPC_extern.h"
#include <dlfcn.h>
LCHAN_DESC DCCH_LCHAN_DESC,DTCH_DL_LCHAN_DESC,DTCH_UL_LCHAN_DESC;
rlc_info_t Rlc_info_um,Rlc_info_am_config;
......@@ -659,6 +662,7 @@ int main(int argc, char **argv)
}
logInit();
load_cuFFT();
set_glog(loglvl);
T_stdout = 1;
/* initialize the sin table */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment