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
wangjie
OpenXG-RAN
Commits
6403ae80
Commit
6403ae80
authored
Sep 18, 2019
by
tyhsu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add time measurement
parent
829c7b4a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
openair1/PHY/CODING/GPU_LDPC/optimized_ldpc/Makefile
openair1/PHY/CODING/GPU_LDPC/optimized_ldpc/Makefile
+3
-0
openair1/PHY/CODING/GPU_LDPC/optimized_ldpc/ldpc.cu
openair1/PHY/CODING/GPU_LDPC/optimized_ldpc/ldpc.cu
+7
-4
No files found.
openair1/PHY/CODING/GPU_LDPC/optimized_ldpc/Makefile
View file @
6403ae80
...
...
@@ -15,6 +15,9 @@ test: ldpc
cgdb
:
clean ldpc
cuda-gdb
--silent
--args
ldpc test_input.txt
prof
:
clean ldpc
nvprof ./ldpc test_input.txt
.PHONY
:
clean
clean
:
$(RM)
-rf
$(DEBUG)
$(EXEC)
$(TXT)
ldpc log.txt channel_output.txt
openair1/PHY/CODING/GPU_LDPC/optimized_ldpc/ldpc.cu
View file @
6403ae80
...
...
@@ -75,6 +75,9 @@ __global__ void BNProcess(int *const_llr, int *bnbuf, int *cnbuf, int *c2b_idx,
int
start
=
bnproc_idx
[
tid
*
2
];
int
end
=
bnproc_idx
[
tid
*
2
+
1
];
// int arr[35] = {};
// get_data<<<1, end-start>>>(arr)
int
val
=
0
;
for
(
int
i
=
start
;
i
<
end
;
i
++
){
if
(
i
==
tid
)
continue
;
...
...
@@ -192,14 +195,14 @@ int main(int argc, char **argv)
cudaDeviceSynchronize
();
/*
cudaEvent_t
start
,
end
;
float
time
;
cudaEventCreate
(
&
start
);
cudaEventCreate
(
&
end
);
cudaEventRecord
(
start
,
0
);
*/
llr2CN
<<<
blockNum
,
threadNum
>>>
(
llr_d
,
cnbuf_d
,
l2c_idx_d
);
llr2BN
<<<
blockNum
,
threadNum
>>>
(
llr_d
,
const_llr_d
,
l2b_idx_d
);
...
...
@@ -233,12 +236,12 @@ int main(int argc, char **argv)
BitDetermination
<<<
33
,
256
>>>
(
llrbuf_d
,
decode_output_d
);
cudaDeviceSynchronize
();
/*
cudaEventRecord
(
end
,
0
);
cudaEventSynchronize
(
end
);
cudaEventElapsedTime
(
&
time
,
start
,
end
);
printf
(
"time: %.6f ms
\n
"
,
time
);
*/
int
err
=
0
;
for
(
int
i
=
0
;
i
<
8448
/
8
;
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