adding some error checks

This commit is contained in:
Florian Kaltenberger
2022-03-09 14:38:41 +01:00
committed by Hongzhi Wang
parent 00ba6b6bb1
commit 2423996bba
3 changed files with 73 additions and 53 deletions
+10 -9
View File
@@ -87,17 +87,18 @@ int load_nrLDPClib_offload(void) {
p_decParams->Z = 384;
p_decParams->BG = 1;
nrLDPC_decoder_offload(p_decParams,
1,
0,
0,
25344,
8,
l,
llrProcBuf, 0);
AssertFatal(nrLDPC_decoder_offload(p_decParams,
1,
0,
0,
25344,
8,
l,
llrProcBuf, 0)>0,
"error loading LDPC decoder offload library\n");
return 0;
return 0;
}
int load_nrLDPClib_ref(char *libversion, nrLDPC_encoderfunc_t * nrLDPC_encoder_ptr) {