mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2025-07-01 20:20:29 +08:00
Fixing more copy files in nvrtc builds.
This commit is contained in:
parent
5c9e573ece
commit
88e5f4a395
@ -26,6 +26,7 @@ set_target_properties(BlackScholes_nvrtc PROPERTIES CUDA_SEPARABLE_COMPILATION O
|
|||||||
|
|
||||||
target_link_libraries(BlackScholes_nvrtc PRIVATE
|
target_link_libraries(BlackScholes_nvrtc PRIVATE
|
||||||
CUDA::nvrtc
|
CUDA::nvrtc
|
||||||
|
CUDA::cuda_driver
|
||||||
)
|
)
|
||||||
|
|
||||||
# Copy kernel to the output directory
|
# Copy kernel to the output directory
|
||||||
|
@ -26,6 +26,7 @@ set_target_properties(binomialOptions_nvrtc PROPERTIES CUDA_SEPARABLE_COMPILATIO
|
|||||||
|
|
||||||
target_link_libraries(binomialOptions_nvrtc PRIVATE
|
target_link_libraries(binomialOptions_nvrtc PRIVATE
|
||||||
CUDA::nvrtc
|
CUDA::nvrtc
|
||||||
|
CUDA::cuda_driver
|
||||||
)
|
)
|
||||||
|
|
||||||
# Copy kernel to the output directory
|
# Copy kernel to the output directory
|
||||||
@ -33,3 +34,21 @@ add_custom_command(TARGET binomialOptions_nvrtc POST_BUILD
|
|||||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/binomialOptions_kernel.cu ${CMAKE_CURRENT_BINARY_DIR}
|
${CMAKE_CURRENT_SOURCE_DIR}/binomialOptions_kernel.cu ${CMAKE_CURRENT_BINARY_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Copy header to the output directory
|
||||||
|
add_custom_command(TARGET binomialOptions_nvrtc POST_BUILD
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/common_gpu_header.h ${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
|
# Copy header to the output directory
|
||||||
|
add_custom_command(TARGET binomialOptions_nvrtc POST_BUILD
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/binomialOptions_common.h ${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
|
# Copy header to the output directory
|
||||||
|
add_custom_command(TARGET binomialOptions_nvrtc POST_BUILD
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/realtype.h ${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
)
|
||||||
|
@ -26,6 +26,7 @@ set_target_properties(quasirandomGenerator_nvrtc PROPERTIES CUDA_SEPARABLE_COMPI
|
|||||||
|
|
||||||
target_link_libraries(quasirandomGenerator_nvrtc PRIVATE
|
target_link_libraries(quasirandomGenerator_nvrtc PRIVATE
|
||||||
CUDA::nvrtc
|
CUDA::nvrtc
|
||||||
|
CUDA::cuda_driver
|
||||||
)
|
)
|
||||||
|
|
||||||
# Copy kernel to the output directory
|
# Copy kernel to the output directory
|
||||||
|
Loading…
x
Reference in New Issue
Block a user