Commit 3ff61d0f authored by Brian Barran's avatar Brian Barran
Browse files

Modified cmake to use CUDA_TOOLKIT_INCLUDE folder for headers

parent d46ff752
Pipeline #34885 failed with stages
in 1 minute and 10 seconds
......@@ -180,13 +180,12 @@ if (WIN32)
target_compile_definitions(openvds_objects PRIVATE _CRT_SECURE_NO_WARNINGS)
endif()
find_package(CUDA 10. REQUIRED)
find_package(CUDA 11.2 REQUIRED)
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -Xptxas=-v --use_fast_math") # For verbose ptxas output
set(CMAKE_CUDA_FLAGS_DEBUG "${CMAKE_CUDA_FLAGS_DEBUG} -G") # For device debug
include_directories(${CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES})
#message("CUDA_TOOLKIT_INCLUDE: ${CUDA_TOOLKIT_INCLUDE}")
#message("CUDA_LIBRARIES: ${CUDA_LIBRARIES}")
target_include_directories(openvds_objects PUBLIC ${CUDA_TOOLKIT_INCLUDE})
target_link_libraries(openvds_objects PUBLIC ${CUDA_LIBRARIES})
EXECUTE_PROCESS(COMMAND uname -m COMMAND tr -d '\n' OUTPUT_VARIABLE ARCH)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment