facebookresearch/CompilerGym
Reinforcement learning environments for compiler and program optimization tasks observed · 2026-08-28
Health v2 · maintenance only
10/100
- Activity 77
- Release rhythm 8
- Longevity 100
Flags: archived
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2121
- days_rel: n/a
- days_push: 141
- n_releases_24m: 0
Adoption not part of the score
1021 stars · 136 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
CompilerGym is a Python library of OpenAI Gym-compatible reinforcement learning environments for compiler and program optimization tasks, covering LLVM, GCC, MLIR, and loop_tool. It bundles benchmark datasets, observation and reward spaces, validation, and leaderboards to lower the barrier to applying ML to compiler research.
Use cases
- train reinforcement learning agents to optimize compiler passes
- tune GCC optimization flags with machine learning
- benchmark ML models on compiler optimization tasks
- research autotuning of LLVM IR optimization sequences
- expose custom compiler optimization problems as gym environments
- compare compiler optimization techniques reproducibly
When to choose
- you want to apply RL or search to compiler optimization without writing C++
- you need reproducible compiler benchmarks with datasets and reward signals
- you want a gym-style API for sequential decision-making over compiler choices
When to avoid
- you need a production compiler or general-purpose build tool
- you only need standard code compilation without ML-driven optimization
- you need actively developed cutting-edge features - development has slowed
Facets
library · maturity maintenance
reinforcement-learning compiler benchmarking machine-learning simulation machine-learning compilers performance artificial-intelligence python cli gym-environments compiler-optimization llvm gcc mlir autotuning program-optimization openai-gym research linux macos docker
9 sources
- readme: https://github.com/facebookresearch/CompilerGym · fetched 2026-08-28 · c0c79a0fe5fd
- homepage: https://compilergym.ai/ · fetched 2026-08-29 · c3db74545aee
- site_page: https://compilergym.com/about.html · fetched 2026-08-29 · d2cbd4ae6ae0
- site_page: https://compilergym.com/changelog.html · fetched 2026-08-29 · 2dc8d3d72b3a
- site_page: https://compilergym.com/faq.html · fetched 2026-08-29 · bb9c8c36e303
- site_page: https://compilergym.com/llvm/index.html · fetched 2026-08-29 · ba5ab7145c0b
- site_page: https://compilergym.com/envs/gcc.html · fetched 2026-08-29 · 60442d0dc0a2
- site_page: https://compilergym.com/envs/loop_tool.html · fetched 2026-08-29 · 4d7d723a7ff4
- site_page: https://compilergym.com/envs/mlir.html · fetched 2026-08-29 · bd4cebe4c7c5
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| facebookresearch/CompilerGym | main | 10 |
For agents
markdown · JSON · MCP: product_card(name="facebookresearch/CompilerGym")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem