Skip to content

Commit

Permalink
modify include path(still not found)
Browse files Browse the repository at this point in the history
  • Loading branch information
CaRoLZhangxy committed Jul 1, 2024
1 parent 9cc67a7 commit b8cce46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/op/pt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ endif()
find_package(MPI)
if(MPI_FOUND)
include(CheckCXXSymbolExists)
check_cxx_symbol_exists(MPIX_Query_cuda_support "mpi.h" CUDA_AWARE)
check_cxx_symbol_exists(MPIX_Query_cuda_support "${MPI_INCLUDE_PATH}/mpi.h" CUDA_AWARE)
if(NOT CUDA_AWARE)
target_compile_definitions(deepmd_op_pt PRIVATE NO_CUDA_AWARE)
endif()
Expand Down
2 changes: 1 addition & 1 deletion source/op/pt/comm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class Border : public torch::autograd::Function<Border> {
if (version >= 4) {
#ifdef NO_CUDA_AWARE
cuda_aware = 0;
#elif
#else
cuda_aware = MPIX_Query_cuda_support();
#endif
} else {
Expand Down

0 comments on commit b8cce46

Please sign in to comment.