Commit 1bee1d28 authored by cucengineer's avatar cucengineer

perf cufft

parent c557b7b8
......@@ -725,6 +725,7 @@ int main( int argc, char **argv )
init_opt();
load_cuFFT();
// test main ok
// int32_t a[2048] = {1};
// int32_t *b = (int32_t *)malloc(2048 * sizeof(int32_t));
// int i;
......
......@@ -442,6 +442,7 @@ int main( int argc, char **argv ) {
init_opt() ;
load_nrLDPClib();
load_cuFFT();
// test main ok
// int16_t a[2048] = {1};
// int16_t *b = (int16_t *)malloc(2048 * sizeof(int16_t));
// int i;
......
......@@ -24,7 +24,7 @@
nrLDPC_decoderfunc_t nrLDPC_decoder;
nrLDPC_encoderfunc_t nrLDPC_encoder;
cudft_EnTx cudft2048;
cudft_EnTx cudft204;
// cudft_EnTx cudft204;
#else
/* functions to load the LDPC shared lib, implemented in openair1/PHY/CODING/nrLDPC_load.c */
extern int load_nrLDPClib(void) ;
......@@ -34,7 +34,7 @@ extern int load_cuFFT(void) ;
extern nrLDPC_decoderfunc_t nrLDPC_decoder;
extern nrLDPC_encoderfunc_t nrLDPC_encoder;
extern cudft_EnTx cudft2048;
extern cudft_EnTx cudft204;
// extern cudft_EnTx cudft204;
// inline functions:
#include "openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_init_mem.h"
#endif
\ No newline at end of file
......@@ -42,7 +42,6 @@
#include <dlfcn.h>
/* function description array, to be used when loading the encoding/decoding shared lib */
static loader_shlibfunc_t shlib_fdesc[2];
......@@ -89,12 +88,12 @@ int load_cuFFT(void) {
dlclose(handle);
return -1;
}
cudft204 = (cudft_EnTx) dlsym(handle, "_Z8testtestPsS_h");
if(!cudft204){
printf("cutest.so error!\n");
dlclose(handle);
return -1;
}
// cudft204 = (cudft_EnTx) dlsym(handle, "_Z8testtestPsS_h");
// if(!cudft204){
// printf("cutest.so error!\n");
// dlclose(handle);
// return -1;
// }
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment