Skip to content

Commit

Permalink
rs: move pthreads and cuda to separate files
Browse files Browse the repository at this point in the history
  • Loading branch information
adammoody committed Nov 30, 2023
1 parent 3312b97 commit 19872fc
Show file tree
Hide file tree
Showing 6 changed files with 1,873 additions and 1,824 deletions.
8 changes: 3 additions & 5 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,21 @@ LIST(APPEND libredset_srcs
redset_single.c
redset_partner.c
redset_xor.c
redset_reedsolomon.c
redset_reedsolomon_common.c
)

IF(ENABLE_PTHREADS)
LIST(APPEND libredset_srcs
redset_xor_pthreads.c
redset_reedsolomon_pthreads.c
)
ENDIF(ENABLE_PTHREADS)

IF(ENABLE_CUDA)
LIST(APPEND libredset_srcs
redset_xor_gpu.cu
redset_reedsolomon.cu
)
ELSE(ENABLE_CUDA)
LIST(APPEND libredset_srcs
redset_reedsolomon.c
redset_reedsolomon_gpu.cu
)
ENDIF(ENABLE_CUDA)

Expand Down
Loading

0 comments on commit 19872fc

Please sign in to comment.