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
常顺宇
OpenXG-RAN
Commits
a07b5eb7
Commit
a07b5eb7
authored
May 08, 2021
by
cucengineer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test cudft2048
parent
31d73a7b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
3 deletions
+23
-3
openair1/PHY/TOOLS/cuFFT.so
openair1/PHY/TOOLS/cuFFT.so
+0
-0
openair1/PHY/TOOLS/oai_dfts.c
openair1/PHY/TOOLS/oai_dfts.c
+23
-3
No files found.
openair1/PHY/TOOLS/cuFFT.so
0 → 100755
View file @
a07b5eb7
File added
openair1/PHY/TOOLS/oai_dfts.c
View file @
a07b5eb7
...
...
@@ -28,6 +28,8 @@
#include <pthread.h>
#include <execinfo.h>
#include <dlfcn.h>
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
...
...
@@ -6260,9 +6262,27 @@ void dft6144(int16_t *input, int16_t *output,unsigned char scale)
tmp[2][i] = ((uint32_t *)input)[j++];
}
dft2048((int16_t*)(tmp[0]),(int16_t*)(tmpo[0]),1);
dft2048((int16_t*)(tmp[1]),(int16_t*)(tmpo[1]),1);
dft2048((int16_t*)(tmp[2]),(int16_t*)(tmpo[2]),1);
//手动加载指定位置的so动态库
void* handle = dlopen("./cuFFT.so", RTLD_LAZY);
void (*cudft2048)(int16_t *x,int16_t *y);
//根据动态链接库操作句柄与符号,返回符号对应的地址
cudft2048 = dlsym(handle, "cudft2048");
cudft2048((int16_t*)(tmp[0]),(int16_t*)(tmpo[0]));
cudft2048((int16_t*)(tmp[1]),(int16_t*)(tmpo[1]));
cudft2048((int16_t*)(tmp[2]),(int16_t*)(tmpo[2]));
for (i = 0; i < 2048; i++)
{
printf("2048204820482048\n");
printf("a=%d\tb=%d\n", tmp[0][i],tmpo[0][i]);
}
dlclose(handle);
// dft2048((int16_t*)(tmp[0]),(int16_t*)(tmpo[0]),1);
// dft2048((int16_t*)(tmp[1]),(int16_t*)(tmpo[1]),1);
// dft2048((int16_t*)(tmp[2]),(int16_t*)(tmpo[2]),1);
/*
for (i=1; i<2048; i++) {
...
...
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