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
6namespace mlx::core {
7
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
Definition jit_compiler.h:8
static std::string build_command(const std::filesystem::path &dir, const std::string &source_file_name, const std::string &shared_lib_name)
static std::string exec(const std::string &cmd)
Definition allocator.h:7