Skip to content

elliottslaughter/regent-tutorial

Repository files navigation

Introduction to the Legion Programming Model

Setup Instructions

Basic sanity check that everything works:

ssh SUNetID@login.sherlock.stanford.edu
git clone https://github.com/elliottslaughter/regent-tutorial.git tutorial
cd tutorial/Overview
sbatch r1.sh
squeue -u $(whoami) # wait until it shows the job has completed
less slurm-*.out

Editor Support for Regent Syntax

Emacs:

mv -f ~/.emacs ~/.emacs.backup
ln -s /home/groups/aaiken/eslaught/econf/quickstart.el ~/.emacs

Vim:

mkdir -p ~/.vim/syntax
wget -O ~/.vim/syntax/regent.vim https://raw.githubusercontent.com/StanfordLegion/regent.vim/master/regent.vim
echo "au BufNewFile,BufRead *.rg set filetype=regent" >> ~/.vimrc

Running Legion Prof

cd tutorial/Tasks
make clean
sbatch rp1.sh
# wait for this to complete
make prof

On your personal machine:

scp -r SUNetID@login.sherlock.stanford.edu:tutorial/Tasks/legion_prof .

Then open legion_prof/index.html in your browser.

Running Legion Spy

cd tutorial/Tasks
make clean
sbatch rs4.sh
# wait for this to complete
make spy

On your personal machine:

scp SUNetID@login.sherlock.stanford.edu:tutorial/Tasks/*.pdf .

Then open the PDF files.

Alternatives to SCP

SSHFS:

mkdir tutorial
sshfs SUNetID@login.sherlock.stanford.edu:tutorial tutorial

Cyberduck: https://cyberduck.io/

Links

About

Regent tutorial code samples

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published