MLX
Loading...
Searching...
No Matches
jit_compiler.h
Go to the documentation of this file.
1
// Copyright © 2024 Apple Inc.
2
#pragma once
3
4
#include <filesystem>
5
6
namespace
mlx::core
{
7
8
class
JitCompiler
{
9
public
:
10
// Build a shell command that compiles a source code file to a shared library.
11
static
std::string
build_command
(
12
const
std::filesystem::path& dir,
13
const
std::string& source_file_name,
14
const
std::string& shared_lib_name);
15
16
// Run a command and get its output.
17
static
std::string
exec
(
const
std::string& cmd);
18
};
19
20
}
// namespace mlx::core
mlx::core::JitCompiler
Definition
jit_compiler.h:8
mlx::core::JitCompiler::build_command
static std::string build_command(const std::filesystem::path &dir, const std::string &source_file_name, const std::string &shared_lib_name)
mlx::core::JitCompiler::exec
static std::string exec(const std::string &cmd)
mlx::core
Definition
allocator.h:7
mlx
backend
common
jit_compiler.h
Generated by
1.13.1