Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lizhongxiao
OpenXG-RAN
Commits
e3747ea0
Commit
e3747ea0
authored
Jun 09, 2022
by
Laurent THOMAS
Committed by
Robert Schmidt
Jun 09, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix small bugs in nrLDPC_tools, remain some warnings to fix
parent
aed83c91
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
92 additions
and
50 deletions
+92
-50
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc/bnProcPc_gen_BG1_avx2.c
...der/nrLDPC_tools/generator_bnProc/bnProcPc_gen_BG1_avx2.c
+6
-3
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc/bnProcPc_gen_BG2_avx2.c
...der/nrLDPC_tools/generator_bnProc/bnProcPc_gen_BG2_avx2.c
+6
-3
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc/bnProc_gen_BG1_avx2.c
...coder/nrLDPC_tools/generator_bnProc/bnProc_gen_BG1_avx2.c
+6
-3
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc/bnProc_gen_BG2_avx2.c
...coder/nrLDPC_tools/generator_bnProc/bnProc_gen_BG2_avx2.c
+6
-3
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc_avx512/bnProcPc_gen_BG1_avx512.c
...C_tools/generator_bnProc_avx512/bnProcPc_gen_BG1_avx512.c
+6
-3
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc_avx512/bnProcPc_gen_BG2_avx512.c
...C_tools/generator_bnProc_avx512/bnProcPc_gen_BG2_avx512.c
+6
-3
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc_avx512/bnProc_gen_BG1_avx512.c
...DPC_tools/generator_bnProc_avx512/bnProc_gen_BG1_avx512.c
+6
-3
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc_avx512/bnProc_gen_BG2_avx512.c
...DPC_tools/generator_bnProc_avx512/bnProc_gen_BG2_avx512.c
+6
-3
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc_avx512/main.c
...rLDPC_decoder/nrLDPC_tools/generator_bnProc_avx512/main.c
+1
-0
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_cnProc/cnProc_gen_BG1_avx2.c
...coder/nrLDPC_tools/generator_cnProc/cnProc_gen_BG1_avx2.c
+7
-3
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_cnProc/cnProc_gen_BG2_avx2.c
...coder/nrLDPC_tools/generator_cnProc/cnProc_gen_BG2_avx2.c
+6
-3
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_cnProc_avx512/cnProc_gen_BG1_avx512.c
...DPC_tools/generator_cnProc_avx512/cnProc_gen_BG1_avx512.c
+6
-3
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_cnProc_avx512/cnProc_gen_BG2_avx512.c
...DPC_tools/generator_cnProc_avx512/cnProc_gen_BG2_avx512.c
+7
-5
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/run_ldpc_generators.sh
...CODING/nrLDPC_decoder/nrLDPC_tools/run_ldpc_generators.sh
+17
-12
No files found.
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc/bnProcPc_gen_BG1_avx2.c
View file @
e3747ea0
...
...
@@ -14,10 +14,13 @@ void nrLDPC_bnProcPc_BG1_generator_AVX2(int R)
// system("mkdir -p ../ldpc_gen_files");
char
fname
[
500
];
s
printf
(
fname
,
"../ldpc_gen_files/bnProcPc/nrLDPC_bnProcPc_BG1_R%s_AVX2.h"
,
ratestr
[
R
]);
char
fname
[
FILENAME_MAX
+
1
];
s
nprintf
(
fname
,
sizeof
(
fname
),
"../ldpc_gen_files/bnProcPc/nrLDPC_bnProcPc_BG1_R%s_AVX2.h"
,
ratestr
[
R
]);
FILE
*
fd
=
fopen
(
fname
,
"w"
);
if
(
fd
==
NULL
)
{
printf
(
"Cannot create
\n
"
);
abort
();}
if
(
fd
==
NULL
)
{
printf
(
"Cannot create file %s
\n
"
,
fname
);
abort
();
}
// fprintf(fd,"#include <stdint.h>\n");
// fprintf(fd,"#include <immintrin.h>\n");
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc/bnProcPc_gen_BG2_avx2.c
View file @
e3747ea0
...
...
@@ -14,10 +14,13 @@ void nrLDPC_bnProcPc_BG2_generator_AVX2(int R)
// system("mkdir -p ../ldpc_gen_files");
char
fname
[
50
];
s
printf
(
fname
,
"../ldpc_gen_files/bnProcPc/nrLDPC_bnProcPc_BG2_R%s_AVX2.h"
,
ratestr
[
R
]);
char
fname
[
FILENAME_MAX
+
1
];
s
nprintf
(
fname
,
sizeof
(
fname
),
"../ldpc_gen_files/bnProcPc/nrLDPC_bnProcPc_BG2_R%s_AVX2.h"
,
ratestr
[
R
]);
FILE
*
fd
=
fopen
(
fname
,
"w"
);
if
(
fd
==
NULL
)
{
printf
(
"Cannot create
\n
"
);
abort
();}
if
(
fd
==
NULL
)
{
printf
(
"Cannot create file %s
\n
"
,
fname
);
abort
();
}
// fprintf(fd,"#include <stdint.h>\n");
//fprintf(fd,"#include <immintrin.h>\n");
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc/bnProc_gen_BG1_avx2.c
View file @
e3747ea0
...
...
@@ -15,10 +15,13 @@ void nrLDPC_bnProc_BG1_generator_AVX2(int R)
// system("mkdir -p ../ldpc_gen_files");
char
fname
[
500
];
s
printf
(
fname
,
"../ldpc_gen_files/bnProc/nrLDPC_bnProc_BG1_R%s_AVX2.h"
,
ratestr
[
R
]);
char
fname
[
FILENAME_MAX
+
1
];
s
nprintf
(
fname
,
sizeof
(
fname
),
"../ldpc_gen_files/bnProc/nrLDPC_bnProc_BG1_R%s_AVX2.h"
,
ratestr
[
R
]);
FILE
*
fd
=
fopen
(
fname
,
"w"
);
if
(
fd
==
NULL
)
{
printf
(
"Cannot create
\n
"
);
abort
();}
if
(
fd
==
NULL
)
{
printf
(
"Cannot create file %s
\n
"
,
fname
);
abort
();
}
//fprintf(fd,"#include <stdint.h>\n");
//fprintf(fd,"#include <immintrin.h>\n");
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc/bnProc_gen_BG2_avx2.c
View file @
e3747ea0
...
...
@@ -15,10 +15,13 @@ void nrLDPC_bnProc_BG2_generator_AVX2(int R)
// system("mkdir -p ../ldpc_gen_files");
char
fname
[
150
];
s
printf
(
fname
,
"../ldpc_gen_files/bnProc/nrLDPC_bnProc_BG2_R%s_AVX2.h"
,
ratestr
[
R
]);
char
fname
[
FILENAME_MAX
+
1
];
s
nprintf
(
fname
,
sizeof
(
fname
),
"../ldpc_gen_files/bnProc/nrLDPC_bnProc_BG2_R%s_AVX2.h"
,
ratestr
[
R
]);
FILE
*
fd
=
fopen
(
fname
,
"w"
);
if
(
fd
==
NULL
)
{
printf
(
"Cannot create
\n
"
);
abort
();}
if
(
fd
==
NULL
)
{
printf
(
"Cannot create file %s
\n
"
,
fname
);
abort
();
}
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc_avx512/bnProcPc_gen_BG1_avx512.c
View file @
e3747ea0
...
...
@@ -15,10 +15,13 @@ void nrLDPC_bnProcPc_BG1_generator_AVX512(int R)
char
fname
[
500
];
s
printf
(
fname
,
"../ldpc_gen_files/bnProcPc_avx512/nrLDPC_bnProcPc_BG1_R%s_AVX512.h"
,
ratestr
[
R
]);
char
fname
[
FILENAME_MAX
+
1
];
s
nprintf
(
fname
,
sizeof
(
fname
),
"../ldpc_gen_files/bnProcPc_avx512/nrLDPC_bnProcPc_BG1_R%s_AVX512.h"
,
ratestr
[
R
]);
FILE
*
fd
=
fopen
(
fname
,
"w"
);
if
(
fd
==
NULL
)
{
printf
(
"Cannot create %s
\n
"
,
fname
);
abort
();}
if
(
fd
==
NULL
)
{
printf
(
"Cannot create file %s
\n
"
,
fname
);
abort
();
}
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc_avx512/bnProcPc_gen_BG2_avx512.c
View file @
e3747ea0
...
...
@@ -15,10 +15,13 @@ void nrLDPC_bnProcPc_BG2_generator_AVX512(int R)
// system("mkdir -p ../ldpc_gen_files");
char
fname
[
500
];
s
printf
(
fname
,
"../ldpc_gen_files/bnProcPc_avx512/nrLDPC_bnProcPc_BG2_R%s_AVX512.h"
,
ratestr
[
R
]);
char
fname
[
FILENAME_MAX
+
1
];
s
nprintf
(
fname
,
sizeof
(
fname
),
"../ldpc_gen_files/bnProcPc_avx512/nrLDPC_bnProcPc_BG2_R%s_AVX512.h"
,
ratestr
[
R
]);
FILE
*
fd
=
fopen
(
fname
,
"w"
);
if
(
fd
==
NULL
)
{
printf
(
"Cannot create %s
\n
"
,
fname
);
abort
();}
if
(
fd
==
NULL
)
{
printf
(
"Cannot create file %s
\n
"
,
fname
);
abort
();
}
// fprintf(fd,"#include <stdint.h>\n");
//fprintf(fd,"#include <immintrin.h>\n");
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc_avx512/bnProc_gen_BG1_avx512.c
View file @
e3747ea0
...
...
@@ -15,10 +15,13 @@ void nrLDPC_bnProc_BG1_generator_AVX512(int R)
// system("mkdir -p ../ldpc_gen_files");
char
fname
[
500
];
s
printf
(
fname
,
"../ldpc_gen_files/bnProc_avx512/nrLDPC_bnProc_BG1_R%s_AVX512.h"
,
ratestr
[
R
]);
char
fname
[
FILENAME_MAX
+
1
];
s
nprintf
(
fname
,
sizeof
(
fname
),
"../ldpc_gen_files/bnProc_avx512/nrLDPC_bnProc_BG1_R%s_AVX512.h"
,
ratestr
[
R
]);
FILE
*
fd
=
fopen
(
fname
,
"w"
);
if
(
fd
==
NULL
)
{
printf
(
"Cannot create %s
\n
"
,
fname
);
abort
();}
if
(
fd
==
NULL
)
{
printf
(
"Cannot create file %s
\n
"
,
fname
);
abort
();
}
//fprintf(fd,"#include <stdint.h>\n");
//fprintf(fd,"#include <immintrin.h>\n");
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc_avx512/bnProc_gen_BG2_avx512.c
View file @
e3747ea0
...
...
@@ -15,10 +15,13 @@ void nrLDPC_bnProc_BG2_generator_AVX512(int R)
// system("mkdir -p ../ldpc_gen_files");
char
fname
[
500
];
s
printf
(
fname
,
"../ldpc_gen_files/bnProc_avx512/nrLDPC_bnProc_BG2_R%s_AVX512.h"
,
ratestr
[
R
]);
char
fname
[
FILENAME_MAX
+
1
];
s
nprintf
(
fname
,
sizeof
(
fname
),
"../ldpc_gen_files/bnProc_avx512/nrLDPC_bnProc_BG2_R%s_AVX512.h"
,
ratestr
[
R
]);
FILE
*
fd
=
fopen
(
fname
,
"w"
);
if
(
fd
==
NULL
)
{
printf
(
"Cannot create %s
\n
"
,
fname
);
abort
();}
if
(
fd
==
NULL
)
{
printf
(
"Cannot create file %s
\n
"
,
fname
);
abort
();
}
fprintf
(
fd
,
"#include <stdint.h>
\n
"
);
fprintf
(
fd
,
"#include <immintrin.h>
\n
"
);
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc_avx512/main.c
View file @
e3747ea0
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#define NB_R 3
void
nrLDPC_bnProc_BG1_generator_AVX512
(
int
);
void
nrLDPC_bnProc_BG2_generator_AVX512
(
int
);
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_cnProc/cnProc_gen_BG1_avx2.c
View file @
e3747ea0
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include "../../nrLDPCdecoder_defs.h"
...
...
@@ -11,10 +12,13 @@ void nrLDPC_cnProc_BG1_generator_AVX2(int R)
// system("mkdir -p ../ldpc_gen_files");
char
fname
[
150
];
s
printf
(
fname
,
"../ldpc_gen_files/cnProc/nrLDPC_cnProc_BG1_R%s_AVX2.h"
,
ratestr
[
R
]);
char
fname
[
FILENAME_MAX
+
1
];
s
nprintf
(
fname
,
sizeof
(
fname
),
"../ldpc_gen_files/cnProc/nrLDPC_cnProc_BG1_R%s_AVX2.h"
,
ratestr
[
R
]);
FILE
*
fd
=
fopen
(
fname
,
"w"
);
if
(
fd
==
NULL
)
{
printf
(
"Cannot create
\n
"
);
abort
();}
if
(
fd
==
NULL
)
{
printf
(
"Cannot create file %s
\n
"
,
fname
);
abort
();
}
fprintf
(
fd
,
"#include <stdint.h>
\n
"
);
fprintf
(
fd
,
"#include <immintrin.h>
\n
"
);
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_cnProc/cnProc_gen_BG2_avx2.c
View file @
e3747ea0
...
...
@@ -15,10 +15,13 @@ void nrLDPC_cnProc_BG2_generator_AVX2(int R)
// system("mkdir -p ldpc_gen_files/avx2");
char
fname
[
500
];
s
printf
(
fname
,
"../ldpc_gen_files/cnProc/nrLDPC_cnProc_BG2_R%s_AVX2.h"
,
ratestr
[
R
]);
char
fname
[
FILENAME_MAX
+
1
];
s
nprintf
(
fname
,
sizeof
(
fname
),
"../ldpc_gen_files/cnProc/nrLDPC_cnProc_BG2_R%s_AVX2.h"
,
ratestr
[
R
]);
FILE
*
fd
=
fopen
(
fname
,
"w"
);
if
(
fd
==
NULL
)
{
printf
(
"Cannot create
\n
"
);
abort
();}
if
(
fd
==
NULL
)
{
printf
(
"Cannot create file %s
\n
"
,
fname
);
abort
();
}
fprintf
(
fd
,
"#include <stdint.h>
\n
"
);
fprintf
(
fd
,
"#include <immintrin.h>
\n
"
);
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_cnProc_avx512/cnProc_gen_BG1_avx512.c
View file @
e3747ea0
...
...
@@ -12,10 +12,13 @@ void nrLDPC_cnProc_BG1_generator_AVX512(int R)
// system("mkdir -p ../ldpc_gen_files");
char
fname
[
500
];
s
printf
(
fname
,
"../ldpc_gen_files/cnProc_avx512/nrLDPC_cnProc_BG1_R%s_AVX512.h"
,
ratestr
[
R
]);
char
fname
[
FILENAME_MAX
+
1
];
s
nprintf
(
fname
,
sizeof
(
fname
),
"../ldpc_gen_files/cnProc_avx512/nrLDPC_cnProc_BG1_R%s_AVX512.h"
,
ratestr
[
R
]);
FILE
*
fd
=
fopen
(
fname
,
"w"
);
if
(
fd
==
NULL
)
{
printf
(
"Cannot create
\n
"
);
abort
();}
if
(
fd
==
NULL
)
{
printf
(
"Cannot create file %s
\n
"
,
fname
);
abort
();
}
// fprintf(fd,"#include <stdint.h>\n");
// fprintf(fd,"#include <immintrin.h>\n");
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_cnProc_avx512/cnProc_gen_BG2_avx512.c
View file @
e3747ea0
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include "../../nrLDPCdecoder_defs.h"
...
...
@@ -13,10 +12,13 @@ void nrLDPC_cnProc_BG2_generator_AVX512(int R)
// system("mkdir -p ../ldpc_gen_files");
char
fname
[
150
];
s
printf
(
fname
,
"../ldpc_gen_files/cnProc_avx512/nrLDPC_cnProc_BG2_R%s_AVX512.h"
,
ratestr
[
R
]);
char
fname
[
FILENAME_MAX
+
1
];
s
nprintf
(
fname
,
sizeof
(
fname
),
"../ldpc_gen_files/cnProc_avx512/nrLDPC_cnProc_BG2_R%s_AVX512.h"
,
ratestr
[
R
]);
FILE
*
fd
=
fopen
(
fname
,
"w"
);
if
(
fd
==
NULL
)
{
printf
(
"Cannot create
\n
"
);
abort
();}
if
(
fd
==
NULL
)
{
printf
(
"Cannot create file %s
\n
"
,
fname
);
abort
();
}
//fprintf(fd,"#include <stdint.h>\n");
// fprintf(fd,"#include <immintrin.h>\n");
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/run_ldpc_generators.sh
View file @
e3747ea0
rm
-rf
$OPENAIR_HOME
/openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/ldpc_gen_files
mkdir
$OPENAIR_HOME
/openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/ldpc_gen_files
mkdir
$OPENAIR_HOME
/openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/ldpc_gen_files/cnProc
mkdir
$OPENAIR_HOME
/openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/ldpc_gen_files/cnProc_avx512
mkdir
$OPENAIR_HOME
/openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/ldpc_gen_files/bnProc
mkdir
$OPENAIR_HOME
/openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/ldpc_gen_files/bnProc_avx512
mkdir
$OPENAIR_HOME
/openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/ldpc_gen_files/bnProcPc
mkdir
$OPENAIR_HOME
/openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/ldpc_gen_files/bnProcPc_avx512
cd
$OPENAIR_HOME
/openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc
;
make
;
./bnProc_gen_avx2
cd
$OPENAIR_HOME
/openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_cnProc
;
make
;
./cnProc_gen_avx2
cd
$OPENAIR_HOME
/openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc_avx512
;
make
;
./bnProc_gen_avx512
cd
$OPENAIR_HOME
/openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_cnProc_avx512
;
make
;
./cnProc_gen_avx512
#!/bin/bash
$(
cd
$OPENAIR_HOME
/openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools
rm
-rf
ldpc_gen_files
mkdir
ldpc_gen_files
cd
ldpc_gen_files
mkdir
cnProc
mkdir
cnProc_avx512
mkdir
bnProc
mkdir
bnProc_avx512
mkdir
bnProcPc
mkdir
bnProcPc_avx512
cd
../generator_bnProc
;
make
;
make clean
;
./bnProc_gen_avx2
cd
../generator_cnProc
;
make
;
make clean
;
./cnProc_gen_avx2
cd
../generator_bnProc_avx512
;
make
;
make clean
;
./bnProc_gen_avx512
cd
../generator_cnProc_avx512
;
make
;
make clean
;
./cnProc_gen_avx512
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment