mirror of
https://github.com/ml-explore/mlx.git
synced 2025-07-23 10:02:12 +08:00
34 lines
1.0 KiB
C++
34 lines
1.0 KiB
C++
// Copyright © 2024 Apple Inc.
|
|
|
|
#include <cassert>
|
|
|
|
#include "mlx/allocator.h"
|
|
#include "mlx/backend/common/utils.h"
|
|
#include "mlx/backend/gpu/copy.h"
|
|
#include "mlx/backend/metal/device.h"
|
|
#include "mlx/backend/metal/utils.h"
|
|
#include "mlx/distributed/ops.h"
|
|
#include "mlx/distributed/primitives.h"
|
|
#include "mlx/fence.h"
|
|
#include "mlx/scheduler.h"
|
|
|
|
namespace mlx::core::distributed {
|
|
|
|
void AllReduce::eval_gpu(const std::vector<array>&, std::vector<array>&) {
|
|
throw std::runtime_error("[AllReduce::eval_gpu] has no GPU implementation.");
|
|
}
|
|
|
|
void AllGather::eval_gpu(const std::vector<array>&, std::vector<array>&) {
|
|
throw std::runtime_error("[AllGather::eval_gpu] has no GPU implementation.");
|
|
}
|
|
|
|
void Send::eval_gpu(const std::vector<array>&, std::vector<array>&) {
|
|
throw std::runtime_error("[Send::eval_gpu] has no GPU implementation.");
|
|
}
|
|
|
|
void Recv::eval_gpu(const std::vector<array>&, std::vector<array>&) {
|
|
throw std::runtime_error("[Recv::eval_gpu] has no GPU implementation.");
|
|
}
|
|
|
|
} // namespace mlx::core::distributed
|