Skip to content

Commit

Permalink
fix python cmake error
Browse files Browse the repository at this point in the history
  • Loading branch information
denghuilu committed Aug 16, 2021
1 parent 68577be commit a6aeeab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if (USE_CUDA_TOOLKIT)
add_definitions("-DGOOGLE_CUDA")
add_subdirectory(src/cuda)
set (EXTRA_LIBS ${EXTRA_LIBS} deepmd_op_cuda)
target_link_libraries (${libname} PRIVATE ${CUDA_LIBRARIES} ${EXTRA_LIBS})
target_link_libraries (${libname} INTERFACE ${CUDA_LIBRARIES} ${EXTRA_LIBS})
# gpu_cuda.h
target_include_directories(${libname} PUBLIC ${CUDA_INCLUDE_DIRS})
endif()
Expand All @@ -20,7 +20,7 @@ if (USE_ROCM_TOOLKIT)
add_definitions("-DTENSORFLOW_USE_ROCM")
add_subdirectory(src/rocm)
set (EXTRA_LIBS ${EXTRA_LIBS} deepmd_op_rocm)
target_link_libraries (${libname} PRIVATE ${ROCM_LIBRARIES} ${EXTRA_LIBS})
target_link_libraries (${libname} INTERFACE ${ROCM_LIBRARIES} ${EXTRA_LIBS})
# gpu_rocm.h
target_include_directories(${libname} PUBLIC ${ROCM_INCLUDE_DIRS})
endif()
Expand Down

0 comments on commit a6aeeab

Please sign in to comment.