RDIR is a dataflow intermediate representation for optimizing compilers for parallel programming models. This compiler plug-in adds RDIR support to Regent, a compiler for task-based parallel programs, with a translator (both AST->RDIR and RDIR->AST) and a number of sample optimizations which demonstrate how to use the plug-in.
-
Install LLVM with headers. (Tested with LLVM 3.5.)
-
Download and install Regent:
git clone -b master https://github.com/StanfordLegion/legion.git cd legion/language ./install.py --debug --rdir=auto
Note: In some cases, Terra may fail to auto-detect CUDA. If so (and assuming you want to use CUDA), recompile Terra with CUDA enabled.
cd terra make clean CUDA_HOME=.../path/to/cuda ENABLE_CUDA=1 make
The initial versions of files recorded in this repository are licensed under the BSD license, copyright (c) 2015 NVIDIA Corporation.
All contributions following the commit below are dual-licensed under the BSD and Apache version 2.0 licenses. Copyright holders are recorded in each file.
commit 7871060eeba2726cd77605b39c2c6e18c582b092 Author: sidelnik sidelnik@gmail.com Date: Tue Oct 13 13:44:43 2015 -0700
Copies of the licenses respective are available in LICENSE_BSD.txt and LICENSE_APACHE.txt.