Skip to content

Commit

Permalink
fix mpi compile
Browse files Browse the repository at this point in the history
  • Loading branch information
CaRoLZhangxy committed Apr 8, 2024
1 parent 87d293a commit 68132da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/op/pt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ find_package(MPI)
if(MPI_FOUND)
target_link_libraries(deepmd_op_pt INTERFACE MPI::MPI_CXX)
target_compile_definitions(deepmd_op_pt PRIVATE USE_MPI)
set(CMAKE_CXX_COMPILER mpicxx)
endif()

if(CMAKE_TESTING_ENABLED)
Expand Down

0 comments on commit 68132da

Please sign in to comment.