mlx-sys 0.0.8

Low-level interface and binding generation for the mlx library
/* Copyright © 2023-2024 Apple Inc.                   */
/*                                                    */
/* This file is auto-generated. Do not edit manually. */
/*                                                    */

#ifndef MLX_METAL_H
#define MLX_METAL_H

#include <stdio.h>

#include "mlx/c/array.h"
#include "mlx/c/closure.h"
#include "mlx/c/future.h"
#include "mlx/c/ioutils.h"
#include "mlx/c/map.h"
#include "mlx/c/stream.h"
#include "mlx/c/string.h"

#ifdef __cplusplus
extern "C" {
#endif

/**
 * \defgroup metal Metal specific operations
 */
/**@{*/
void mlx_metal_clear_cache();
size_t mlx_metal_get_active_memory();
size_t mlx_metal_get_cache_memory();
size_t mlx_metal_get_peak_memory();
bool mlx_metal_is_available();
void mlx_metal_reset_peak_memory();
size_t mlx_metal_set_cache_limit(size_t limit);
size_t mlx_metal_set_memory_limit(size_t limit, bool relaxed);
void mlx_metal_start_capture(mlx_string path);
void mlx_metal_stop_capture();
/**@}*/

#ifdef __cplusplus
}
#endif

#endif