dist/include/ contains the MLX and MLX-C headers needed for CGo compilation. Without these, go-mlx cannot be used as a module dependency (headers not found in module cache). Libraries (dylib/metallib) are still gitignored — users build those locally via cmake. Co-Authored-By: Virgil <virgil@lethean.io>
33 lines
637 B
C++
33 lines
637 B
C++
// Copyright © 2024 Apple Inc.
|
|
|
|
#pragma once
|
|
|
|
#include "mlx/array.h"
|
|
|
|
namespace mlx::core {
|
|
|
|
void binary_op_gpu(
|
|
const std::vector<array>& inputs,
|
|
std::vector<array>& outputs,
|
|
const char* op,
|
|
const Stream& s);
|
|
|
|
void binary_op_gpu(
|
|
const std::vector<array>& inputs,
|
|
array& out,
|
|
const char* op,
|
|
const Stream& s);
|
|
|
|
void binary_op_gpu_inplace(
|
|
const std::vector<array>& inputs,
|
|
std::vector<array>& outputs,
|
|
const char* op,
|
|
const Stream& s);
|
|
|
|
void binary_op_gpu_inplace(
|
|
const std::vector<array>& inputs,
|
|
array& out,
|
|
const char* op,
|
|
const Stream& s);
|
|
|
|
} // namespace mlx::core
|