Commit 1bee1d28 authored by cucengineer's avatar cucengineer

perf cufft

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