Skip to content
Snippets Groups Projects
Commit 1ae9d59f authored by Soeren Peters's avatar Soeren Peters
Browse files

Added cuda_helper.h to the repository.

parent d3a4bebc
No related branches found
No related tags found
1 merge request!12Add Cuda helper files to 3rdParty folder.
# 3rd party cuda
The file helper_cuda.h added from here https://github.com/NVIDIA/cuda-samples/blob/v11.2/Common/helper_cuda.h
To prevent the environment from providing this file and to eliminating the source of error of not finding this file,
the header was added in this repository.
\ No newline at end of file
This diff is collapsed.
function(linkCUDA)
find_path(CUDA_CUT_INCLUDE_DIR
helper_cuda.h
PATHS "$ENV{NVCUDASAMPLES_ROOT}" "${NVCUDASAMPLES_ROOT}"
PATH_SUFFIXES "common/inc" "Common"
DOC "Location of helper_cuda.h"
NO_DEFAULT_PATH
)
set(CUDA_CUT_INCLUDE_DIR "${VF_THIRD_DIR}/cuda/")
vf_get_library_name(library_name)
target_include_directories(${library_name} PRIVATE ${CUDA_CUT_INCLUDE_DIR})
target_include_directories(${library_name} PRIVATE ${CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES})
message("CUDA INCLUDE PATH: ${CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES}")
# set the following properties only for specific targets
# set_property(TARGET ${targetName} PROPERTY CUDA_SEPARABLE_COMPILATION ON)
# set_property(TARGET ${targetName} PROPERTY CUDA_64_BIT_DEVICE_CODE ON)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment