mirror of
https://gitlab.eurecom.fr/oai/openairinterface5g.git
synced 2026-07-13 04:30:28 +00:00
updating ulsim/dlsim testing scripts
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@6286 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
@@ -50,14 +50,17 @@ NUM_TRIALS=3
|
||||
|
||||
PRB=[25,50,100]
|
||||
MCS=[0,4,9,10,13,16,17,22,27]
|
||||
SNR=[0,0,0,0,0,0,0,0,0]
|
||||
#PRB=[100]
|
||||
#MCS=[27]
|
||||
#SNR=[0,0,0,0,0,0,0,0,0]
|
||||
ANT_TX=2 # 2
|
||||
ANT_RX=2 # 2
|
||||
PDCCH=2 #, 2, 3, 4
|
||||
CHANNEL=["N","I"] # A,B,C,D,E,F, H(Rayleigh8), L(Rice8)
|
||||
CHANNEL=["N"]
|
||||
#CHANNEL=["C","E","F","G","H","I","L","M"]
|
||||
TX_MODE=2 # 2,
|
||||
MIN_SNR=2
|
||||
MAX_SNR=34
|
||||
MIN_SNR=0
|
||||
MAX_SNR=40
|
||||
PERF=75
|
||||
OPT="-L"
|
||||
FRAME=2000
|
||||
@@ -65,7 +68,6 @@ FRAME=2000
|
||||
#OPT="-L -d" # 8bit decoder , activate dci decoding at UE
|
||||
|
||||
|
||||
|
||||
def execute(oai, user, pw, host, logfile,logdir,debug,cpu):
|
||||
|
||||
case = '10'
|
||||
@@ -110,7 +112,11 @@ def execute(oai, user, pw, host, logfile,logdir,debug,cpu):
|
||||
conf = '-B' + str(PRB[i]) + ' -m'+str(MCS[j]) + ' -y'+str(k) + ' -z'+str(m) +' -c'+str(n) + ' -g'+str(CHANNEL[o]) + ' -x'+str(p) + ' -s'+str(q) + ' -w1.0 -f.1 -P -n'+str(FRAME)+' -O'+str(PERF) +' '+ OPT
|
||||
trace = logdir + '/time_meas' + '_prb'+str(PRB[i])+'_mcs'+ str(MCS[j])+ '_anttx' + str(k)+ '_antrx' + str(m) + '_pdcch' + str(n) + '_channel' +str(CHANNEL[o]) + '_tx' +str(p) + '_snr' +str(q)+'.'+case+str(test)+ '.log'
|
||||
tee = ' 2>&1 | tee ' + trace
|
||||
cmd = 'taskset -c '+ str(cpu) + ' ./dlsim.rel8.'+ host + ' ' + conf + tee
|
||||
if cpu > -1 :
|
||||
cmd = 'taskset -c '+ str(cpu) + ' ./dlsim.rel8.'+ host + ' ' + conf + tee
|
||||
else :
|
||||
cmd = './dlsim.rel8.'+ host + ' ' + conf + tee
|
||||
|
||||
if debug :
|
||||
print cmd
|
||||
|
||||
|
||||
@@ -50,12 +50,15 @@ NUM_TRIALS=3
|
||||
|
||||
PRB=[25,50,100]
|
||||
MCS=[0,4,9,10,13,16,17,22,27]
|
||||
#PRB=[100]
|
||||
#MCS=[16]
|
||||
ANT_TX=1 # 2
|
||||
ANT_RX=2 # 2
|
||||
CHANNEL=["N","I"] # A,B,C,D,E,F,
|
||||
CHANNEL=["N"]
|
||||
#CHANNEL=["C","E","F","G","H","I","L","M"] # A,B,C,D,E,F,
|
||||
TX_MODE=2 # 2,
|
||||
MIN_SNR=2
|
||||
MAX_SNR=34
|
||||
MIN_SNR=0
|
||||
MAX_SNR=40
|
||||
PERF=75
|
||||
OPT="-L"
|
||||
FRAME=2000
|
||||
@@ -105,7 +108,10 @@ def execute(oai, user, pw, host,logfile,logdir,debug,cpu):
|
||||
conf = '-B' + str(PRB[i]) + ' -m'+str(MCS[j]) + ' -y'+str(m) + ' -g'+str(CHANNEL[o]) + ' -x'+str(p) + ' -s'+str(q) + ' -w1.0 -e.1 -P -n'+str(FRAME)+' -O'+str(PERF)+' '+ OPT
|
||||
trace = logdir + '/time_meas' + '_prb'+str(PRB[i])+'_mcs'+ str(MCS[j])+ '_antrx' + str(m) + '_channel' +str(CHANNEL[o]) + '_tx' +str(p) + '_snr' +str(q)+'.'+case+str(test)+ '.log'
|
||||
tee = ' 2>&1 | tee ' + trace
|
||||
cmd = 'taskset -c ' + str(cpu) + ' ./ulsim.rel8.'+ host + ' ' + conf + tee
|
||||
if cpu > -1 :
|
||||
cmd = 'taskset -c ' + str(cpu) + ' ./ulsim.rel8.'+ host + ' ' + conf + tee
|
||||
else :
|
||||
cmd = './ulsim.rel8.'+ host + ' ' + conf + tee
|
||||
|
||||
if debug :
|
||||
print cmd
|
||||
|
||||
@@ -57,7 +57,7 @@ pw =''
|
||||
i = 0
|
||||
clean = 0
|
||||
start_case = 0
|
||||
cpu = 0
|
||||
cpu = -1
|
||||
|
||||
for arg in sys.argv:
|
||||
if arg == '-d':
|
||||
@@ -109,7 +109,10 @@ oai = openair('localdomain','localhost')
|
||||
try:
|
||||
user = getpass.getuser()
|
||||
print '\n******* Note that the user <'+user+'> should be a sudoer *******\n'
|
||||
print '******* Connecting to the localhost <'+host+'> to perform the test on CPU '+str(cpu)+' *******\n'
|
||||
if cpu > -1 :
|
||||
print '******* Connecting to the localhost <'+host+'> to perform the test on CPU '+str(cpu)+' *******\n'
|
||||
else :
|
||||
print '******* Connecting to the localhost <'+host+'> to perform the test *******\n'
|
||||
|
||||
if not pw :
|
||||
print "username: " + user
|
||||
@@ -146,9 +149,9 @@ if clean == 1 :
|
||||
# start te test cases
|
||||
#compile
|
||||
|
||||
rv=case11.execute(oai, user, pw, host,logfile,logdir,debug)
|
||||
rv=1 #case11.execute(oai, user, pw, host,logfile,logdir,debug)
|
||||
if rv == 1 :
|
||||
case12.execute(oai, user, pw, host,logfile,logdir,debug,cpu)
|
||||
# case12.execute(oai, user, pw, host,logfile,logdir,debug,cpu)
|
||||
case13.execute(oai, user, pw, host,logfile,logdir,debug,cpu)
|
||||
else :
|
||||
print 'Compilation error: skip case 12 and 13'
|
||||
|
||||
Reference in New Issue
Block a user