Skip to content

Commit

Permalink
fix compile error (#67432)
Browse files Browse the repository at this point in the history
* fix compile error

* fix
  • Loading branch information
XieYunshen authored Aug 15, 2024
1 parent 97462bc commit 89d51ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddle/phi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ endif()
# when phi is built to dynamic library, it's fine. But when phi
# is built to static library, phi_gpu should be linked to phi_core.
# By the way, cyclic dependency is allowed in static library.
if(NOT WIN32 AND NOT WITH_SHARED_PHI)
if((WITH_GPU OR WITH_ROCM) AND NOT WITH_SHARED_PHI)
target_link_libraries(phi_core phi_gpu)
endif()

Expand Down

0 comments on commit 89d51ba

Please sign in to comment.