mirror of
https://github.com/ml-explore/mlx.git
synced 2025-08-04 09:46:43 +08:00
21 lines
441 B
C++
21 lines
441 B
C++
// Copyright © 2024 Apple Inc.
|
|
|
|
#include "mlx/distributed/ring/ring.h"
|
|
|
|
namespace mlx::core::distributed::ring {
|
|
|
|
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 ring distributed backend.");
|
|
}
|
|
return nullptr;
|
|
}
|
|
|
|
} // namespace mlx::core::distributed::ring
|