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
lizhongxiao
OpenXG-RAN
Commits
0cccbced
Commit
0cccbced
authored
Aug 10, 2021
by
frtabu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move cuda ldpc code in a shared lib
parent
c1ae0962
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
cmake_targets/CMakeLists.txt
cmake_targets/CMakeLists.txt
+12
-5
No files found.
cmake_targets/CMakeLists.txt
View file @
0cccbced
...
...
@@ -1590,6 +1590,11 @@ set(PHY_LDPC_OPTIM8SEGMULTI_SRC
${
OPENAIR1_DIR
}
/PHY/CODING/nrLDPC_decoder/nrLDPC_decoder.c
${
OPENAIR1_DIR
}
/PHY/CODING/nrLDPC_encoder/ldpc_encoder_optim8segmulti.c
)
set
(
PHY_LDPC_CUDA_SRC
${
OPENAIR1_DIR
}
/PHY/CODING/nrLDPC_decoder_LYC/nrLDPC_decoder.cu
${
OPENAIR1_DIR
}
/PHY/CODING/nrLDPC_encoder/ldpc_encoder_optim8segmulti.c
)
set
(
PHY_NR_CODINGIF
${
OPENAIR1_DIR
}
/PHY/CODING/nrLDPC_load.c;
)
...
...
@@ -1597,8 +1602,13 @@ set(PHY_NR_CODINGIF
add_library
(
ldpc_orig MODULE
${
PHY_LDPC_ORIG_SRC
}
)
add_library
(
ldpc_optim MODULE
${
PHY_LDPC_OPTIM_SRC
}
)
add_library
(
ldpc_optim8seg MODULE
${
PHY_LDPC_OPTIM8SEG_SRC
}
)
if
(
CUDA_FOUND
)
add_library
(
ldpc_cuda MODULE
${
PHY_LDPC_CUDA_SRC
}
)
CUDA_ADD_CUFFT_TO_TARGET
(
ldpc_cuda
)
endif
(
CUDA_FOUND
)
add_library
(
ldpc MODULE
${
PHY_LDPC_OPTIM8SEGMULTI_SRC
}
)
add_library
(
coding MODULE
${
PHY_TURBOSRC
}
)
add_library
(
dfts MODULE
${
OPENAIR1_DIR
}
/PHY/TOOLS/oai_dfts.c
)
...
...
@@ -3178,10 +3188,7 @@ if (CUDA_FOUND)
# For CUDA library
###################################################
CUDA_ADD_LIBRARY
(
LDPC_CU
${
OPENAIR1_DIR
}
/PHY/CODING/nrLDPC_decoder_LYC/nrLDPC_decoder_LYC.cu
)
CUDA_ADD_CUFFT_TO_TARGET
(
LDPC_CU
)
cuda_add_executable
(
ldpctest
${
OPENAIR1_DIR
}
/PHY/CODING/TESTBENCH/ldpctest.c
${
T_SOURCE
}
...
...
@@ -3189,7 +3196,7 @@ if (CUDA_FOUND)
)
target_link_libraries
(
ldpctest -ldl
-Wl,--start-group
LDPC_CU
UTIL SIMU PHY_NR CONFIG_LIB
UTIL SIMU PHY_NR CONFIG_LIB
-Wl,--end-group
m pthread
${
ATLAS_LIBRARIES
}
dl
)
...
...
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