Skip to content

Commit

Permalink
rm redundance code
Browse files Browse the repository at this point in the history
  • Loading branch information
Chao1Han committed Sep 11, 2024
1 parent b0c0592 commit 366d208
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions torch/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ if(USE_XPU)
append_filelist("libtorch_python_xpu_sources" TORCH_PYTHON_SRCS)

list(APPEND TORCH_PYTHON_COMPILE_DEFINITIONS USE_XPU)
list(APPEND TORCH_PYTHON_LINK_LIBRARIES torch::xpurt)
endif()

if(USE_CUDNN OR USE_ROCM)
Expand Down Expand Up @@ -420,8 +419,6 @@ endif()
target_compile_definitions(torch_python PRIVATE "-DTHP_BUILD_MAIN_LIB")

target_link_libraries(torch_python PRIVATE ${TORCH_LIB} ${TORCH_PYTHON_LINK_LIBRARIES})
target_link_libraries(torch_python PRIVATE torch::xpurt)
target_link_libraries(torch_python PRIVATE c10_xpu)

target_compile_definitions(torch_python PRIVATE ${TORCH_PYTHON_COMPILE_DEFINITIONS})

Expand Down

0 comments on commit 366d208

Please sign in to comment.