Slide 5
Slide 5 text
Adding a New Compiler
https://compilergym.ai
Feature
Extractors
#include "compiler_gym/service/CompilationSession.h"
#include "compiler_gym/service/runtime/Runtime.h"
using namespace compiler_gym;
struct MyCompilationSession: public CompilationSession{
vector getActionSpaces() {...}
vector getObservationSpaces() {...}
Status init(
const ActionSpace& actionSpace,
const Benchmark& benchmark) {...}
Status applyAction(
const Action& action,
bool& endOfEpisode,
bool& actionSpaceChanged) {...}
Status setObservation(
const ObservationSpace& observationSpace,
Observation& observation) {...}
};
int main(int argc, char** argv) {
runtime::createAndRunService(argc, argv, "My compiler service");
}