compiler_gym/service/runtime¶
This directory contains the CompilerGym runtime that takes a
compiler_gym::CompilationSession
subclass and provides an RPC service
that can be used by the Python frontend.
Contents
- local
Runtime.h¶
#include "compiler_gym/service/runtime/Runtime.h"
-
namespace compiler_gym
-
namespace runtime¶
Functions
-
template<typename CompilationSessionType>
void createAndRunCompilerGymService(int argc, char **argv, const char *usage)¶ Create and run an RPC service for the given compilation session.
This should be called on its own in a self contained script to implement a compilation service. Example:
#include "compiler_gym/service/runtime/Runtime.h" #include "my_compiler_service/MyCompilationSession.h" int main(int argc, char** argv) { createAndRunCompilerGymService<MyCompilationSession>( argc, argc, "My compiler service" ); }
This function never returns.
- Template Parameters
CompilationSessionType – A sublass of CompilationSession that provides implementations of the abstract methods.
-
template<typename CompilationSessionType>
-
namespace runtime¶