mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2025-04-09 01:32:12 +01:00
Add explicit system libraries needed on some Linux distributions
This commit is contained in:
parent
152ba4b941
commit
56852fbb50
Samples
0_Introduction/matrixMulDynlinkJIT
2_Concepts_and_Techniques/threadMigration
3_CUDA_Features/memMapIPCDrv
@ -34,3 +34,7 @@ target_link_libraries(matrixMulDynlinkJIT PUBLIC
|
||||
CUDA::cudart
|
||||
CUDA::cuda_driver
|
||||
)
|
||||
|
||||
if(UNIX)
|
||||
target_link_libraries(matrixMulDynlinkJIT PUBLIC dl)
|
||||
endif()
|
||||
|
@ -35,6 +35,10 @@ target_link_libraries(threadMigration PUBLIC
|
||||
CUDA::cuda_driver
|
||||
)
|
||||
|
||||
if(UNIX)
|
||||
target_link_libraries(threadMigration PUBLIC pthread)
|
||||
endif()
|
||||
|
||||
set(CUDA_FATBIN_FILE "${CMAKE_CURRENT_BINARY_DIR}/threadMigration_kernel64.fatbin")
|
||||
set(CUDA_KERNEL_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/threadMigration_kernel.cu")
|
||||
|
||||
|
@ -35,6 +35,10 @@ target_link_libraries(memMapIPCDrv PUBLIC
|
||||
CUDA::cuda_driver
|
||||
)
|
||||
|
||||
if(UNIX)
|
||||
target_link_libraries(memMapIPCDrv PUBLIC rt)
|
||||
endif()
|
||||
|
||||
set(CUDA_PTX_FILE "${CMAKE_CURRENT_BINARY_DIR}/memMapIpc_kernel64.ptx")
|
||||
set(CUDA_KERNEL_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/memMapIpc_kernel.cu")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user