Files
mlx/mlx/distributed/nccl/no_nccl.cpp
Anastasiia Filippova 9392fc3f88 NCCL backend (#2476)
2025-08-21 11:56:15 -07:00

21 lines
441 B
C++

// Copyright © 2024 Apple Inc.
#include "mlx/distributed/nccl/nccl.h"
namespace mlx::core::distributed::nccl {
using GroupImpl = mlx::core::distributed::detail::GroupImpl;
bool is_available() {
return false;
}
std::shared_ptr<GroupImpl> init(bool strict /* = false */) {
if (strict) {
throw std::runtime_error("Cannot initialize nccl distributed backend.");
}
return nullptr;
}
} // namespace mlx::core::distributed::nccl