[examples] Run the environemnt after install.
"source": [
"## Installation\n",
"\n",
- "Install the latest CompilerGym release using:"
+ "Install the latest CompilerGym release using pip:"
]
},
{
},
"outputs": [],
"source": [
- "!pip install compiler_gym"
+ "!pip install compiler_gym\n",
+ "\n",
+ "# Ignore this code block:\n",
+ "#\n",
+ "# Explanation: to keep the size of the CompilerGym package down\n",
+ "# most environments split out their large data dependencies into\n",
+ "# separate archives which must be downloaded and cached locally\n",
+ "# the first time you run an environment. Here we are doing this\n",
+ "# for the LLVM environment so that the rest of the code cells in\n",
+ "# this document are nice and snappy.\n",
+ "import compiler_gym\n",
+ "with compiler_gym.make(\"llvm-autophase-ic-v0\") as env:\n",
+ " env.reset()\n",
+ "# End of ignored code block."
]
},
{
