mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-04-14 14:53:18 +00:00
Moving cudahelpers headers so other blocks can use it more easily.
This commit is contained in:
parent
ef136e5c74
commit
0821216970
@ -347,7 +347,7 @@ $ sudo make install
|
||||
|
||||
###### Build CUDA support (OPTIONAL):
|
||||
|
||||
In order to enable the building of blocks that use CUDA, NVIDIA's parallel programming model that enables graphics processing unit (GPU) acceleration for data-parallel computations, first you need to install the CUDA Toolkit from [NVIDIA Developers Download page](https://developer.nvidia.com/cuda-downloads "CUDA Downloads"). Then, build GNSS-SDR doing:
|
||||
In order to enable the building of blocks that use CUDA, NVIDIA's parallel programming model that enables graphics processing unit (GPU) acceleration for data-parallel computations, first you need to install the CUDA Toolkit from [NVIDIA Developers Download page](https://developer.nvidia.com/cuda-downloads "CUDA Downloads"). Make sure that the SDK samples build well. Then, build GNSS-SDR by doing:
|
||||
|
||||
~~~~~~
|
||||
$ cmake -DENABLE_CUDA=ON ../
|
||||
|
@ -19,8 +19,9 @@
|
||||
|
||||
if(ENABLE_CUDA)
|
||||
set(OPT_TRACKING_BLOCKS ${OPT_TRACKING_BLOCKS} gps_l1_ca_dll_pll_tracking_gpu_cc.cc)
|
||||
set(OPT_TRACKING_INCLUDES ${OPT_TRACKING_INCLUDES} ${CUDA_INCLUDE_DIRS}
|
||||
${CMAKE_SOURCE_DIR}/src/algorithms/tracking/libs/cudahelpers)
|
||||
set(OPT_TRACKING_INCLUDES ${OPT_TRACKING_INCLUDES}
|
||||
${CUDA_INCLUDE_DIRS}
|
||||
${CMAKE_SOURCE_DIR}/src/algorithms/libs/cudahelpers)
|
||||
set(OPT_TRACKING_LIBRARIES ${OPT_TRACKING_LIBRARIES} ${CUDA_LIBRARIES})
|
||||
endif(ENABLE_CUDA)
|
||||
|
||||
|
@ -24,13 +24,13 @@ if(ENABLE_CUDA)
|
||||
set(CUDA_PROPAGATE_HOST_FLAGS OFF)
|
||||
CUDA_INCLUDE_DIRECTORIES(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/cudahelpers
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../../libs/cudahelpers
|
||||
)
|
||||
|
||||
set(LIB_TYPE STATIC) #set the lib type
|
||||
CUDA_ADD_LIBRARY(CUDA_CORRELATOR_LIB ${LIB_TYPE} cuda_multicorrelator.h cuda_multicorrelator.cu)
|
||||
set(OPT_TRACKING_LIBRARIES ${OPT_TRACKING_LIBRARIES} CUDA_CORRELATOR_LIB)
|
||||
set(OPT_TRACKING_INCLUDES ${OPT_TRACKING_INCLUDES} ${CUDA_INCLUDE_DIRS})
|
||||
set(OPT_TRACKING_INCLUDES ${OPT_TRACKING_INCLUDES} ${CUDA_INCLUDE_DIRS} ${CMAKE_CURRENT_SOURCE_DIR}/../../libs/cudahelpers)
|
||||
endif(ENABLE_CUDA)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user