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>
18 lines
304 B
C++
18 lines
304 B
C++
// Copyright © 2023-2024 Apple Inc.
|
|
|
|
#pragma once
|
|
|
|
#include <future>
|
|
#include <memory>
|
|
|
|
#include "mlx/array.h"
|
|
#include "mlx/stream.h"
|
|
|
|
namespace mlx::core::gpu {
|
|
|
|
void new_stream(Stream stream);
|
|
void eval(array& arr);
|
|
void finalize(Stream s);
|
|
void synchronize(Stream s);
|
|
|
|
} // namespace mlx::core::gpu
|