If you use Ubuntu, you can install Regent by running:
If you use Homebrew on macOS, you can install Regent by running:
Note: In order for this to work, Homebrew must be installed to
/usr/local. Other locations (such as
$HOME) will build but will
result in a broken compiler.
Complete instructions for installation follow below.
Regent is also available as a Docker container. See the bottom of this page for instructions.
There are also a number of optional dependencies. For most users, we recommend skipping these initially and installing them later on an as-needed basis.
Regent includes a self-installer which downloads Terra and builds the Regent compiler. Run:
For other installation options (including multi-node and GPU configurations), see the README.
Regent includes a frontend interpreter which can be run with:
(Note: The Regent frontend can also be run without arguments to obtain a Terra/LuaJIT shell. However, this mode is not very useful because of the way that Terra language extensions works. Also, the Legion runtime is not currently reentrant, making interactive use difficult.)
Regent syntax highlighting modes are available for the following editors:
If you have Docker, Regent is also available as a container:
This will start a bash shell from which you can run Regent. Regent is
/usr/local/legion. So for example, to run the
Because Docker containers have no access to the host file system, some
additional options are required if you want to run Docker on your own
Regent files. The command below mounts the current directory in the
/examples in the container and then runs Regent on it.