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
spbro
OpenXG-RAN
Commits
7b68c486
Commit
7b68c486
authored
Jun 09, 2022
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make LDPC generator output directory prefix configurable
parent
25004365
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
88 additions
and
76 deletions
+88
-76
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc/bnProcPc_gen_BG1_avx2.c
...der/nrLDPC_tools/generator_bnProc/bnProcPc_gen_BG1_avx2.c
+2
-2
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc/bnProcPc_gen_BG2_avx2.c
...der/nrLDPC_tools/generator_bnProc/bnProcPc_gen_BG2_avx2.c
+2
-2
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc/bnProc_gen_BG1_avx2.c
...coder/nrLDPC_tools/generator_bnProc/bnProc_gen_BG1_avx2.c
+2
-2
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc/bnProc_gen_BG2_avx2.c
...coder/nrLDPC_tools/generator_bnProc/bnProc_gen_BG2_avx2.c
+2
-2
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc/main.c
...ODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc/main.c
+17
-14
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
+2
-2
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
+2
-2
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
+2
-2
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
+2
-2
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc_avx512/main.c
...rLDPC_decoder/nrLDPC_tools/generator_bnProc_avx512/main.c
+17
-14
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_cnProc/cnProc_gen_BG1_avx2.c
...coder/nrLDPC_tools/generator_cnProc/cnProc_gen_BG1_avx2.c
+2
-2
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_cnProc/cnProc_gen_BG2_avx2.c
...coder/nrLDPC_tools/generator_cnProc/cnProc_gen_BG2_avx2.c
+2
-2
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_cnProc/main.c
...ODING/nrLDPC_decoder/nrLDPC_tools/generator_cnProc/main.c
+13
-10
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
+2
-2
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
+2
-2
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_cnProc_avx512/main.c
...rLDPC_decoder/nrLDPC_tools/generator_cnProc_avx512/main.c
+13
-10
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/run_ldpc_generators.sh
...CODING/nrLDPC_decoder/nrLDPC_tools/run_ldpc_generators.sh
+4
-4
No files found.
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc/bnProcPc_gen_BG1_avx2.c
View file @
7b68c486
...
...
@@ -5,7 +5,7 @@
#include "../../nrLDPC_types.h"
void
nrLDPC_bnProcPc_BG1_generator_AVX2
(
int
R
)
void
nrLDPC_bnProcPc_BG1_generator_AVX2
(
const
char
*
dir
,
int
R
)
{
const
char
*
ratestr
[
3
]
=
{
"13"
,
"23"
,
"89"
};
...
...
@@ -15,7 +15,7 @@ void nrLDPC_bnProcPc_BG1_generator_AVX2(int R)
// system("mkdir -p ../ldpc_gen_files");
char
fname
[
FILENAME_MAX
+
1
];
snprintf
(
fname
,
sizeof
(
fname
),
"
../ldpc_gen_files/bnProcPc/nrLDPC_bnProcPc_BG1_R%s_AVX2.h"
,
ratestr
[
R
]);
snprintf
(
fname
,
sizeof
(
fname
),
"
%s/bnProcPc/nrLDPC_bnProcPc_BG1_R%s_AVX2.h"
,
dir
,
ratestr
[
R
]);
FILE
*
fd
=
fopen
(
fname
,
"w"
);
if
(
fd
==
NULL
)
{
printf
(
"Cannot create file %s
\n
"
,
fname
);
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc/bnProcPc_gen_BG2_avx2.c
View file @
7b68c486
...
...
@@ -5,7 +5,7 @@
#include "../../nrLDPC_types.h"
void
nrLDPC_bnProcPc_BG2_generator_AVX2
(
int
R
)
void
nrLDPC_bnProcPc_BG2_generator_AVX2
(
const
char
*
dir
,
int
R
)
{
const
char
*
ratestr
[
3
]
=
{
"15"
,
"13"
,
"23"
};
...
...
@@ -15,7 +15,7 @@ void nrLDPC_bnProcPc_BG2_generator_AVX2(int R)
// system("mkdir -p ../ldpc_gen_files");
char
fname
[
FILENAME_MAX
+
1
];
snprintf
(
fname
,
sizeof
(
fname
),
"
../ldpc_gen_files/bnProcPc/nrLDPC_bnProcPc_BG2_R%s_AVX2.h"
,
ratestr
[
R
]);
snprintf
(
fname
,
sizeof
(
fname
),
"
%s/bnProcPc/nrLDPC_bnProcPc_BG2_R%s_AVX2.h"
,
dir
,
ratestr
[
R
]);
FILE
*
fd
=
fopen
(
fname
,
"w"
);
if
(
fd
==
NULL
)
{
printf
(
"Cannot create file %s
\n
"
,
fname
);
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc/bnProc_gen_BG1_avx2.c
View file @
7b68c486
...
...
@@ -6,7 +6,7 @@
#include "../../nrLDPC_types.h"
void
nrLDPC_bnProc_BG1_generator_AVX2
(
int
R
)
void
nrLDPC_bnProc_BG1_generator_AVX2
(
const
char
*
dir
,
int
R
)
{
const
char
*
ratestr
[
3
]
=
{
"13"
,
"23"
,
"89"
};
...
...
@@ -16,7 +16,7 @@ void nrLDPC_bnProc_BG1_generator_AVX2(int R)
// system("mkdir -p ../ldpc_gen_files");
char
fname
[
FILENAME_MAX
+
1
];
snprintf
(
fname
,
sizeof
(
fname
),
"
../ldpc_gen_files/bnProc/nrLDPC_bnProc_BG1_R%s_AVX2.h"
,
ratestr
[
R
]);
snprintf
(
fname
,
sizeof
(
fname
),
"
%s/bnProc/nrLDPC_bnProc_BG1_R%s_AVX2.h"
,
dir
,
ratestr
[
R
]);
FILE
*
fd
=
fopen
(
fname
,
"w"
);
if
(
fd
==
NULL
)
{
printf
(
"Cannot create file %s
\n
"
,
fname
);
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc/bnProc_gen_BG2_avx2.c
View file @
7b68c486
...
...
@@ -6,7 +6,7 @@
void
nrLDPC_bnProc_BG2_generator_AVX2
(
int
R
)
void
nrLDPC_bnProc_BG2_generator_AVX2
(
const
char
*
dir
,
int
R
)
{
const
char
*
ratestr
[
3
]
=
{
"15"
,
"13"
,
"23"
};
...
...
@@ -16,7 +16,7 @@ void nrLDPC_bnProc_BG2_generator_AVX2(int R)
// system("mkdir -p ../ldpc_gen_files");
char
fname
[
FILENAME_MAX
+
1
];
snprintf
(
fname
,
sizeof
(
fname
),
"
../ldpc_gen_files/bnProc/nrLDPC_bnProc_BG2_R%s_AVX2.h"
,
ratestr
[
R
]);
snprintf
(
fname
,
sizeof
(
fname
),
"
%s/bnProc/nrLDPC_bnProc_BG2_R%s_AVX2.h"
,
dir
,
ratestr
[
R
]);
FILE
*
fd
=
fopen
(
fname
,
"w"
);
if
(
fd
==
NULL
)
{
printf
(
"Cannot create file %s
\n
"
,
fname
);
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc/main.c
View file @
7b68c486
...
...
@@ -2,24 +2,27 @@
#include <stdio.h>
#include <stdint.h>
#define NB_R 3
void
nrLDPC_bnProc_BG1_generator_AVX2
(
int
);
void
nrLDPC_bnProc_BG2_generator_AVX2
(
int
);
void
nrLDPC_bnProcPc_BG1_generator_AVX2
(
int
);
void
nrLDPC_bnProcPc_BG2_generator_AVX2
(
int
);
void
nrLDPC_bnProc_BG1_generator_AVX2
(
const
char
*
,
int
);
void
nrLDPC_bnProc_BG2_generator_AVX2
(
const
char
*
,
int
);
void
nrLDPC_bnProcPc_BG1_generator_AVX2
(
const
char
*
,
int
);
void
nrLDPC_bnProcPc_BG2_generator_AVX2
(
const
char
*
,
int
);
int
main
()
int
main
(
int
argc
,
char
*
argv
[]
)
{
int
R
[
NB_R
]
=
{
0
,
1
,
2
};
for
(
int
i
=
0
;
i
<
NB_R
;
i
++
){
if
(
argc
!=
2
)
{
fprintf
(
stderr
,
"usage: %s <output-dir>
\n
"
,
argv
[
0
]);
return
1
;
}
const
char
*
dir
=
argv
[
1
];
nrLDPC_bnProc_BG1_generator_AVX2
(
R
[
i
]);
nrLDPC_bnProc_BG2_generator_AVX2
(
R
[
i
]);
nrLDPC_bnProcPc_BG1_generator_AVX2
(
R
[
i
]);
nrLDPC_bnProcPc_BG2_generator_AVX2
(
R
[
i
]);
}
int
R
[
NB_R
]
=
{
0
,
1
,
2
};
for
(
int
i
=
0
;
i
<
NB_R
;
i
++
){
nrLDPC_bnProc_BG1_generator_AVX2
(
dir
,
R
[
i
]);
nrLDPC_bnProc_BG2_generator_AVX2
(
dir
,
R
[
i
]);
nrLDPC_bnProcPc_BG1_generator_AVX2
(
dir
,
R
[
i
]);
nrLDPC_bnProcPc_BG2_generator_AVX2
(
dir
,
R
[
i
]);
}
return
(
0
);
}
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc_avx512/bnProcPc_gen_BG1_avx512.c
View file @
7b68c486
...
...
@@ -6,7 +6,7 @@
#include "../../nrLDPC_types.h"
void
nrLDPC_bnProcPc_BG1_generator_AVX512
(
int
R
)
void
nrLDPC_bnProcPc_BG1_generator_AVX512
(
const
char
*
dir
,
int
R
)
{
const
char
*
ratestr
[
3
]
=
{
"13"
,
"23"
,
"89"
};
...
...
@@ -16,7 +16,7 @@ void nrLDPC_bnProcPc_BG1_generator_AVX512(int R)
char
fname
[
FILENAME_MAX
+
1
];
snprintf
(
fname
,
sizeof
(
fname
),
"
../ldpc_gen_files/bnProcPc_avx512/nrLDPC_bnProcPc_BG1_R%s_AVX512.h"
,
ratestr
[
R
]);
snprintf
(
fname
,
sizeof
(
fname
),
"
%s/bnProcPc_avx512/nrLDPC_bnProcPc_BG1_R%s_AVX512.h"
,
dir
,
ratestr
[
R
]);
FILE
*
fd
=
fopen
(
fname
,
"w"
);
if
(
fd
==
NULL
)
{
printf
(
"Cannot create file %s
\n
"
,
fname
);
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc_avx512/bnProcPc_gen_BG2_avx512.c
View file @
7b68c486
...
...
@@ -6,7 +6,7 @@
#include "../../nrLDPC_types.h"
void
nrLDPC_bnProcPc_BG2_generator_AVX512
(
int
R
)
void
nrLDPC_bnProcPc_BG2_generator_AVX512
(
const
char
*
dir
,
int
R
)
{
const
char
*
ratestr
[
3
]
=
{
"15"
,
"13"
,
"23"
};
...
...
@@ -16,7 +16,7 @@ void nrLDPC_bnProcPc_BG2_generator_AVX512(int R)
// system("mkdir -p ../ldpc_gen_files");
char
fname
[
FILENAME_MAX
+
1
];
snprintf
(
fname
,
sizeof
(
fname
),
"
../ldpc_gen_files/bnProcPc_avx512/nrLDPC_bnProcPc_BG2_R%s_AVX512.h"
,
ratestr
[
R
]);
snprintf
(
fname
,
sizeof
(
fname
),
"
%s/bnProcPc_avx512/nrLDPC_bnProcPc_BG2_R%s_AVX512.h"
,
dir
,
ratestr
[
R
]);
FILE
*
fd
=
fopen
(
fname
,
"w"
);
if
(
fd
==
NULL
)
{
printf
(
"Cannot create file %s
\n
"
,
fname
);
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc_avx512/bnProc_gen_BG1_avx512.c
View file @
7b68c486
...
...
@@ -6,7 +6,7 @@
#include "../../nrLDPC_types.h"
void
nrLDPC_bnProc_BG1_generator_AVX512
(
int
R
)
void
nrLDPC_bnProc_BG1_generator_AVX512
(
const
char
*
dir
,
int
R
)
{
const
char
*
ratestr
[
3
]
=
{
"13"
,
"23"
,
"89"
};
...
...
@@ -16,7 +16,7 @@ void nrLDPC_bnProc_BG1_generator_AVX512(int R)
// system("mkdir -p ../ldpc_gen_files");
char
fname
[
FILENAME_MAX
+
1
];
snprintf
(
fname
,
sizeof
(
fname
),
"
../ldpc_gen_files/bnProc_avx512/nrLDPC_bnProc_BG1_R%s_AVX512.h"
,
ratestr
[
R
]);
snprintf
(
fname
,
sizeof
(
fname
),
"
%s/bnProc_avx512/nrLDPC_bnProc_BG1_R%s_AVX512.h"
,
dir
,
ratestr
[
R
]);
FILE
*
fd
=
fopen
(
fname
,
"w"
);
if
(
fd
==
NULL
)
{
printf
(
"Cannot create file %s
\n
"
,
fname
);
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc_avx512/bnProc_gen_BG2_avx512.c
View file @
7b68c486
...
...
@@ -6,7 +6,7 @@
#include "../../nrLDPC_types.h"
void
nrLDPC_bnProc_BG2_generator_AVX512
(
int
R
)
void
nrLDPC_bnProc_BG2_generator_AVX512
(
const
char
*
dir
,
int
R
)
{
const
char
*
ratestr
[
3
]
=
{
"15"
,
"13"
,
"23"
};
...
...
@@ -16,7 +16,7 @@ void nrLDPC_bnProc_BG2_generator_AVX512(int R)
// system("mkdir -p ../ldpc_gen_files");
char
fname
[
FILENAME_MAX
+
1
];
snprintf
(
fname
,
sizeof
(
fname
),
"
../ldpc_gen_files/bnProc_avx512/nrLDPC_bnProc_BG2_R%s_AVX512.h"
,
ratestr
[
R
]);
snprintf
(
fname
,
sizeof
(
fname
),
"
%s/bnProc_avx512/nrLDPC_bnProc_BG2_R%s_AVX512.h"
,
dir
,
ratestr
[
R
]);
FILE
*
fd
=
fopen
(
fname
,
"w"
);
if
(
fd
==
NULL
)
{
printf
(
"Cannot create file %s
\n
"
,
fname
);
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_bnProc_avx512/main.c
View file @
7b68c486
...
...
@@ -3,24 +3,27 @@
#include <stdint.h>
#include <stdlib.h>
#define NB_R 3
void
nrLDPC_bnProc_BG1_generator_AVX512
(
int
);
void
nrLDPC_bnProc_BG2_generator_AVX512
(
int
);
void
nrLDPC_bnProcPc_BG1_generator_AVX512
(
int
);
void
nrLDPC_bnProcPc_BG2_generator_AVX512
(
int
);
void
nrLDPC_bnProc_BG1_generator_AVX512
(
const
char
*
,
int
);
void
nrLDPC_bnProc_BG2_generator_AVX512
(
const
char
*
,
int
);
void
nrLDPC_bnProcPc_BG1_generator_AVX512
(
const
char
*
,
int
);
void
nrLDPC_bnProcPc_BG2_generator_AVX512
(
const
char
*
,
int
);
int
main
()
int
main
(
int
argc
,
char
*
argv
[]
)
{
int
R
[
NB_R
]
=
{
0
,
1
,
2
};
for
(
int
i
=
0
;
i
<
NB_R
;
i
++
){
if
(
argc
!=
2
)
{
fprintf
(
stderr
,
"usage: %s <output-dir>
\n
"
,
argv
[
0
]);
return
1
;
}
const
char
*
dir
=
argv
[
1
];
nrLDPC_bnProc_BG1_generator_AVX512
(
R
[
i
]);
nrLDPC_bnProc_BG2_generator_AVX512
(
R
[
i
]);
nrLDPC_bnProcPc_BG1_generator_AVX512
(
R
[
i
]);
nrLDPC_bnProcPc_BG2_generator_AVX512
(
R
[
i
]);
}
int
R
[
NB_R
]
=
{
0
,
1
,
2
};
for
(
int
i
=
0
;
i
<
NB_R
;
i
++
){
nrLDPC_bnProc_BG1_generator_AVX512
(
dir
,
R
[
i
]);
nrLDPC_bnProc_BG2_generator_AVX512
(
dir
,
R
[
i
]);
nrLDPC_bnProcPc_BG1_generator_AVX512
(
dir
,
R
[
i
]);
nrLDPC_bnProcPc_BG2_generator_AVX512
(
dir
,
R
[
i
]);
}
return
(
0
);
}
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_cnProc/cnProc_gen_BG1_avx2.c
View file @
7b68c486
...
...
@@ -3,7 +3,7 @@
#include <stdint.h>
#include "../../nrLDPCdecoder_defs.h"
void
nrLDPC_cnProc_BG1_generator_AVX2
(
int
R
)
void
nrLDPC_cnProc_BG1_generator_AVX2
(
const
char
*
dir
,
int
R
)
{
const
char
*
ratestr
[
3
]
=
{
"13"
,
"23"
,
"89"
};
...
...
@@ -13,7 +13,7 @@ void nrLDPC_cnProc_BG1_generator_AVX2(int R)
// system("mkdir -p ../ldpc_gen_files");
char
fname
[
FILENAME_MAX
+
1
];
snprintf
(
fname
,
sizeof
(
fname
),
"
../ldpc_gen_files/cnProc/nrLDPC_cnProc_BG1_R%s_AVX2.h"
,
ratestr
[
R
]);
snprintf
(
fname
,
sizeof
(
fname
),
"
%s/cnProc/nrLDPC_cnProc_BG1_R%s_AVX2.h"
,
dir
,
ratestr
[
R
]);
FILE
*
fd
=
fopen
(
fname
,
"w"
);
if
(
fd
==
NULL
)
{
printf
(
"Cannot create file %s
\n
"
,
fname
);
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_cnProc/cnProc_gen_BG2_avx2.c
View file @
7b68c486
...
...
@@ -6,7 +6,7 @@
#include "../../nrLDPC_bnProc.h"
void
nrLDPC_cnProc_BG2_generator_AVX2
(
int
R
)
void
nrLDPC_cnProc_BG2_generator_AVX2
(
const
char
*
dir
,
int
R
)
{
const
char
*
ratestr
[
3
]
=
{
"15"
,
"13"
,
"23"
};
...
...
@@ -16,7 +16,7 @@ void nrLDPC_cnProc_BG2_generator_AVX2(int R)
// system("mkdir -p ldpc_gen_files/avx2");
char
fname
[
FILENAME_MAX
+
1
];
snprintf
(
fname
,
sizeof
(
fname
),
"
../ldpc_gen_files/cnProc/nrLDPC_cnProc_BG2_R%s_AVX2.h"
,
ratestr
[
R
]);
snprintf
(
fname
,
sizeof
(
fname
),
"
%s/cnProc/nrLDPC_cnProc_BG2_R%s_AVX2.h"
,
dir
,
ratestr
[
R
]);
FILE
*
fd
=
fopen
(
fname
,
"w"
);
if
(
fd
==
NULL
)
{
printf
(
"Cannot create file %s
\n
"
,
fname
);
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_cnProc/main.c
View file @
7b68c486
...
...
@@ -2,18 +2,21 @@
#include <stdio.h>
#include <stdint.h>
#define NB_R 3
void
nrLDPC_cnProc_BG1_generator_AVX2
(
int
);
void
nrLDPC_cnProc_BG2_generator_AVX2
(
int
);
int
main
()
void
nrLDPC_cnProc_BG1_generator_AVX2
(
const
char
*
,
int
);
void
nrLDPC_cnProc_BG2_generator_AVX2
(
const
char
*
,
int
);
int
main
(
int
argc
,
char
*
argv
[]
)
{
int
R
[
NB_R
]
=
{
0
,
1
,
2
};
for
(
int
i
=
0
;
i
<
NB_R
;
i
++
){
nrLDPC_cnProc_BG1_generator_AVX2
(
R
[
i
]);
nrLDPC_cnProc_BG2_generator_AVX2
(
R
[
i
]);
}
if
(
argc
!=
2
)
{
fprintf
(
stderr
,
"usage: %s <output-dir>
\n
"
,
argv
[
0
]);
return
1
;
}
const
char
*
dir
=
argv
[
1
];
int
R
[
NB_R
]
=
{
0
,
1
,
2
};
for
(
int
i
=
0
;
i
<
NB_R
;
i
++
)
{
nrLDPC_cnProc_BG1_generator_AVX2
(
dir
,
R
[
i
]);
nrLDPC_cnProc_BG2_generator_AVX2
(
dir
,
R
[
i
]);
}
return
(
0
);
}
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_cnProc_avx512/cnProc_gen_BG1_avx512.c
View file @
7b68c486
...
...
@@ -3,7 +3,7 @@
#include <stdlib.h>
#include "../../nrLDPCdecoder_defs.h"
void
nrLDPC_cnProc_BG1_generator_AVX512
(
int
R
)
void
nrLDPC_cnProc_BG1_generator_AVX512
(
const
char
*
dir
,
int
R
)
{
const
char
*
ratestr
[
3
]
=
{
"13"
,
"23"
,
"89"
};
...
...
@@ -13,7 +13,7 @@ void nrLDPC_cnProc_BG1_generator_AVX512(int R)
// system("mkdir -p ../ldpc_gen_files");
char
fname
[
FILENAME_MAX
+
1
];
snprintf
(
fname
,
sizeof
(
fname
),
"
../ldpc_gen_files/cnProc_avx512/nrLDPC_cnProc_BG1_R%s_AVX512.h"
,
ratestr
[
R
]);
snprintf
(
fname
,
sizeof
(
fname
),
"
%s/cnProc_avx512/nrLDPC_cnProc_BG1_R%s_AVX512.h"
,
dir
,
ratestr
[
R
]);
FILE
*
fd
=
fopen
(
fname
,
"w"
);
if
(
fd
==
NULL
)
{
printf
(
"Cannot create file %s
\n
"
,
fname
);
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_cnProc_avx512/cnProc_gen_BG2_avx512.c
View file @
7b68c486
...
...
@@ -3,7 +3,7 @@
#include <stdint.h>
#include "../../nrLDPCdecoder_defs.h"
void
nrLDPC_cnProc_BG2_generator_AVX512
(
int
R
)
void
nrLDPC_cnProc_BG2_generator_AVX512
(
const
char
*
dir
,
int
R
)
{
const
char
*
ratestr
[
3
]
=
{
"15"
,
"13"
,
"23"
};
...
...
@@ -13,7 +13,7 @@ void nrLDPC_cnProc_BG2_generator_AVX512(int R)
// system("mkdir -p ../ldpc_gen_files");
char
fname
[
FILENAME_MAX
+
1
];
snprintf
(
fname
,
sizeof
(
fname
),
"
../ldpc_gen_files/cnProc_avx512/nrLDPC_cnProc_BG2_R%s_AVX512.h"
,
ratestr
[
R
]);
snprintf
(
fname
,
sizeof
(
fname
),
"
%s/cnProc_avx512/nrLDPC_cnProc_BG2_R%s_AVX512.h"
,
dir
,
ratestr
[
R
]);
FILE
*
fd
=
fopen
(
fname
,
"w"
);
if
(
fd
==
NULL
)
{
printf
(
"Cannot create file %s
\n
"
,
fname
);
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/generator_cnProc_avx512/main.c
View file @
7b68c486
...
...
@@ -2,18 +2,21 @@
#include <stdio.h>
#include <stdint.h>
#define NB_R 3
void
nrLDPC_cnProc_BG1_generator_AVX512
(
int
);
void
nrLDPC_cnProc_BG2_generator_AVX512
(
int
);
int
main
()
void
nrLDPC_cnProc_BG1_generator_AVX512
(
const
char
*
,
int
);
void
nrLDPC_cnProc_BG2_generator_AVX512
(
const
char
*
,
int
);
int
main
(
int
argc
,
char
*
argv
[]
)
{
int
R
[
NB_R
]
=
{
0
,
1
,
2
};
for
(
int
i
=
0
;
i
<
NB_R
;
i
++
){
nrLDPC_cnProc_BG1_generator_AVX512
(
R
[
i
]);
nrLDPC_cnProc_BG2_generator_AVX512
(
R
[
i
]);
}
if
(
argc
!=
2
)
{
fprintf
(
stderr
,
"usage: %s <output-dir>
\n
"
,
argv
[
0
]);
return
1
;
}
const
char
*
dir
=
argv
[
1
];
int
R
[
NB_R
]
=
{
0
,
1
,
2
};
for
(
int
i
=
0
;
i
<
NB_R
;
i
++
){
nrLDPC_cnProc_BG1_generator_AVX512
(
dir
,
R
[
i
]);
nrLDPC_cnProc_BG2_generator_AVX512
(
dir
,
R
[
i
]);
}
return
(
0
);
}
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/run_ldpc_generators.sh
View file @
7b68c486
...
...
@@ -10,8 +10,8 @@ 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
cd
../generator_bnProc
;
make
;
make clean
;
./bnProc_gen_avx2
../ldpc_gen_files
cd
../generator_cnProc
;
make
;
make clean
;
./cnProc_gen_avx2
../ldpc_gen_files
cd
../generator_bnProc_avx512
;
make
;
make clean
;
./bnProc_gen_avx512
../ldpc_gen_files
cd
../generator_cnProc_avx512
;
make
;
make clean
;
./cnProc_gen_avx512
../ldpc_gen_files
)
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