LDPC decoder generator cleanup
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
C=gcc
|
||||
CFLAGS=-W -Wall -mavx2
|
||||
CFLAGS=-W -Wall -mavx2 -DCODEGEN=1
|
||||
LDFLAGS=
|
||||
EXEC=bnProc_gen_avx2
|
||||
SRC= $(wildcard *.c)
|
||||
@@ -13,7 +13,7 @@ bnProc_gen_avx2: $(OBJ)
|
||||
|
||||
|
||||
%.o: %.c
|
||||
@$(CC) -o $@ -c $< $(CFLAGS) -I ${OPENAIR_HOME}/openair1 -g -std=c99
|
||||
@$(CC) -o $@ -c $< $(CFLAGS) -I ${OPENAIR_HOME}/openair1 -I ${OPENAIR_HOME}/common/utils -I ${OPENAIR_HOME}/common/utils/T -I ${OPENAIR_HOME}/openair2/COMMON -g -std=c99
|
||||
|
||||
.PHONY: clean mrproper
|
||||
|
||||
|
||||
+3
-6
@@ -1,9 +1,6 @@
|
||||
|
||||
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <immintrin.h>
|
||||
#include "../../nrLDPCdecoder_defs.h"
|
||||
#include "../../nrLDPC_types.h"
|
||||
|
||||
@@ -17,7 +14,7 @@ void nrLDPC_bnProcPc_BG1_generator_AVX2(int R)
|
||||
|
||||
// system("mkdir -p ../ldpc_gen_files");
|
||||
|
||||
char fname[50];
|
||||
char fname[500];
|
||||
sprintf(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();}
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
#include <immintrin.h>
|
||||
#include "../../nrLDPCdecoder_defs.h"
|
||||
|
||||
+3
-2
@@ -1,4 +1,5 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <immintrin.h>
|
||||
#include "../../nrLDPCdecoder_defs.h"
|
||||
@@ -14,7 +15,7 @@ void nrLDPC_bnProc_BG1_generator_AVX2(int R)
|
||||
|
||||
// system("mkdir -p ../ldpc_gen_files");
|
||||
|
||||
char fname[50];
|
||||
char fname[500];
|
||||
sprintf(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();}
|
||||
|
||||
+2
-3
@@ -1,7 +1,6 @@
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <immintrin.h>
|
||||
#include "../../nrLDPCdecoder_defs.h"
|
||||
#include "../../nrLDPC_types.h"
|
||||
|
||||
|
||||
Binary file not shown.
@@ -1,5 +1,5 @@
|
||||
C=gcc
|
||||
CFLAGS=-W -Wall -mavx2
|
||||
CFLAGS=-W -Wall -mavx2 -DCODEGEN=1
|
||||
LDFLAGS=
|
||||
EXEC=bnProc_gen_avx512
|
||||
SRC= $(wildcard *.c)
|
||||
@@ -13,7 +13,7 @@ bnProc_gen_avx512: $(OBJ)
|
||||
|
||||
|
||||
%.o: %.c
|
||||
@$(CC) -o $@ -c $< $(CFLAGS) -I ${OPENAIR_HOME}/openair1 -g -std=c99
|
||||
@$(CC) -o $@ -c $< $(CFLAGS) -I ${OPENAIR_HOME}/openair1 -I ${OPENAIR_HOME}/common/utils -I ${OPENAIR_HOME}/common/utils/T -I ${OPENAIR_HOME}/openair2/COMMON -g -std=c99
|
||||
|
||||
.PHONY: clean mrproper
|
||||
|
||||
|
||||
+3
-1
@@ -1,3 +1,5 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <immintrin.h>
|
||||
#include "../../nrLDPCdecoder_defs.h"
|
||||
@@ -13,7 +15,7 @@ void nrLDPC_bnProcPc_BG1_generator_AVX512(int R)
|
||||
|
||||
|
||||
|
||||
char fname[50];
|
||||
char fname[500];
|
||||
sprintf(fname,"../ldpc_gen_files/bn_avx512/nrLDPC_bnProcPc_BG1_R%s_AVX512.h",ratestr[R]);
|
||||
FILE *fd=fopen(fname,"w");
|
||||
if (fd == NULL) {printf("Cannot create \n");abort();}
|
||||
|
||||
+3
-4
@@ -1,6 +1,5 @@
|
||||
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <immintrin.h>
|
||||
#include "../../nrLDPCdecoder_defs.h"
|
||||
@@ -16,7 +15,7 @@ void nrLDPC_bnProcPc_BG2_generator_AVX512(int R)
|
||||
|
||||
// system("mkdir -p ../ldpc_gen_files");
|
||||
|
||||
char fname[50];
|
||||
char fname[500];
|
||||
sprintf(fname,"../ldpc_gen_files/bn_avx512/nrLDPC_bnProcPc_BG2_R%s_AVX512.h",ratestr[R]);
|
||||
FILE *fd=fopen(fname,"w");
|
||||
if (fd == NULL) {printf("Cannot create \n");abort();}
|
||||
|
||||
+3
-2
@@ -1,4 +1,5 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
#include <immintrin.h>
|
||||
#include "../../nrLDPCdecoder_defs.h"
|
||||
@@ -14,7 +15,7 @@ void nrLDPC_bnProc_BG1_generator_AVX512(int R)
|
||||
|
||||
// system("mkdir -p ../ldpc_gen_files");
|
||||
|
||||
char fname[50];
|
||||
char fname[500];
|
||||
sprintf(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 \n");abort();}
|
||||
|
||||
+3
-1
@@ -1,3 +1,5 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <immintrin.h>
|
||||
#include "../../nrLDPCdecoder_defs.h"
|
||||
@@ -13,7 +15,7 @@ void nrLDPC_bnProc_BG2_generator_AVX512(int R)
|
||||
|
||||
// system("mkdir -p ../ldpc_gen_files");
|
||||
|
||||
char fname[50];
|
||||
char fname[500];
|
||||
sprintf(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 \n");abort();}
|
||||
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -1,5 +1,5 @@
|
||||
C=gcc
|
||||
CFLAGS=-W -Wall -mavx2
|
||||
CFLAGS=-W -Wall -mavx2 -DCODEGEN=1
|
||||
LDFLAGS=
|
||||
EXEC=cnProc_gen_avx2
|
||||
SRC= $(wildcard *.c)
|
||||
@@ -13,7 +13,7 @@ cnProc_gen_avx2: $(OBJ)
|
||||
#main.o: cnProc_gen_avx2.h
|
||||
|
||||
%.o: %.c
|
||||
@$(CC) -o $@ -c $< $(CFLAGS) -I ${OPENAIR_HOME}/openair1 -g -std=c99
|
||||
@$(CC) -o $@ -c $< $(CFLAGS) -I ${OPENAIR_HOME}/openair1 -I ${OPENAIR_HOME} -I ${OPENAIR_HOME}/common/utils -I ${OPENAIR_HOME}/common/utils/T -I ${OPENAIR_HOME}/openair2/COMMON -std=c99
|
||||
|
||||
.PHONY: clean mrproper
|
||||
|
||||
|
||||
+3
-2
@@ -1,5 +1,6 @@
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
#include <immintrin.h>
|
||||
#include <stdlib.h>
|
||||
#include "../../nrLDPCdecoder_defs.h"
|
||||
#include "../../nrLDPC_types.h"
|
||||
#include "../../nrLDPC_bnProc.h"
|
||||
@@ -14,7 +15,7 @@ void nrLDPC_cnProc_BG2_generator_AVX2(int R)
|
||||
|
||||
// system("mkdir -p ldpc_gen_files/avx2");
|
||||
|
||||
char fname[50];
|
||||
char fname[500];
|
||||
sprintf(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();}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
+2
-1
@@ -1,5 +1,6 @@
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include "../../nrLDPCdecoder_defs.h"
|
||||
|
||||
void nrLDPC_cnProc_BG1_generator_AVX512(int R)
|
||||
@@ -11,7 +12,7 @@ void nrLDPC_cnProc_BG1_generator_AVX512(int R)
|
||||
|
||||
// system("mkdir -p ../ldpc_gen_files");
|
||||
|
||||
char fname[50];
|
||||
char fname[500];
|
||||
sprintf(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();}
|
||||
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
+2071
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user