enable RCCL
This commit is contained in:
parent
d7f1235b7d
commit
b6b5218245
@ -87,7 +87,7 @@ namespace xgboost::collective {
|
||||
}
|
||||
}
|
||||
|
||||
#if !defined(XGBOOST_USE_NCCL)
|
||||
#if !defined(XGBOOST_USE_NCCL) && !defined(XGBOOST_USE_RCCL)
|
||||
Coll* Coll::MakeCUDAVar() {
|
||||
LOG(FATAL) << "NCCL is required for device communication.";
|
||||
return nullptr;
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright 2023, XGBoost Contributors
|
||||
*/
|
||||
#if defined(XGBOOST_USE_NCCL)
|
||||
#if defined(XGBOOST_USE_NCCL) || defined(XGBOOST_USE_RCCL)
|
||||
#include <cstdint> // for int8_t, int64_t
|
||||
|
||||
#include "../common/cuda_context.cuh"
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright 2023, XGBoost Contributors
|
||||
*/
|
||||
#if defined(XGBOOST_USE_NCCL)
|
||||
#if defined(XGBOOST_USE_NCCL) || defined(XGBOOST_USE_RCCL)
|
||||
#include <algorithm> // for sort
|
||||
#include <cstddef> // for size_t
|
||||
#include <cstdint> // for uint64_t, int8_t
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#ifdef XGBOOST_USE_NCCL
|
||||
#if defined(XGBOOST_USE_NCCL) || defined(XGBOOST_USE_RCCL)
|
||||
#include "nccl.h"
|
||||
#endif // XGBOOST_USE_NCCL
|
||||
#include "../common/device_helpers.cuh"
|
||||
|
||||
@ -1092,7 +1092,13 @@ class CUDAStreamView {
|
||||
operator hipStream_t() const { // NOLINT
|
||||
return stream_;
|
||||
}
|
||||
void Sync() { dh::safe_cuda(hipStreamSynchronize(stream_)); }
|
||||
hipError_t Sync(bool error = true) {
|
||||
if (error) {
|
||||
dh::safe_cuda(hipStreamSynchronize(stream_));
|
||||
return hipSuccess;
|
||||
}
|
||||
return hipStreamSynchronize(stream_);
|
||||
}
|
||||
};
|
||||
|
||||
inline void CUDAEvent::Record(CUDAStreamView stream) { // NOLINT
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user