Skip to content

Commit

Permalink
fix bug in dist op
Browse files Browse the repository at this point in the history
  • Loading branch information
wenchenvincent committed Mar 11, 2024
1 parent 363cb01 commit 1efec4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions csrc/dist_op/FindRCCL.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ else()
endif()

find_path(RCCL_INCLUDE_DIR NAMES rccl.h
PATHS ${ROCM_PATH}/include/rccl)
PATHS ${ROCM_PATH}/include/rccl /usr/local/include/rccl)

find_library(RCCL_LIBRARY NAMES rccl
PATHS ${ROCM_PATH}/lib)
PATHS ${ROCM_PATH}/lib /usr/local/lib)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(RCCL DEFAULT_MSG RCCL_INCLUDE_DIR RCCL_LIBRARY)
Expand Down
3 changes: 0 additions & 3 deletions csrc/dist_op/dist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
#include <hip/hip_runtime.h>
#include <rccl.h>
#define stream_t hipStream_t
// TODO: Remove ncclFp8E4M3 and ncclFp8E5M2 after rccl supports FP8
#define ncclFp8E4M3 ncclUint8
#define ncclFp8E5M2 ncclInt8
#else
#include <nccl.h>
#define stream_t cudaStream_t
Expand Down

0 comments on commit 1efec4a

Please sign in to comment.