-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
Justin Szaday edited this page Feb 17, 2022
·
5 revisions
To build Ergoline, you will need:
- SBT (tested with v1.4.6+)
- An Installation of JDK (tested with JDK v8+, we recommend Oracle's builds)
- An Installation of Charm++ (present at
CHARM_HOME)
Checkout Ergoline's repo:
git clone https://github.com/jszaday/ergoline.git
cd ergoline
export ERG_HOME="$(pwd)"
If an installation of Hypercomm is already present, you can omit these steps:
git submodule init
git submodule update
cd hypercomm/
cmake .
make -j
cd ../
To build ergc.jar, now run the following:
sbt assembly
Along with ERG_HOME, we recommend adding this alias to your environment:
alias ergc="java -jar $(pwd)/ergc.jar"
Now, test and run an example:
ergc examples/hello.erg
charmrun $OPTS ./a.out
Note, various options can be passed through ergc to the underlying (C++) compiler. For best performance, we recommend building with -Ofast whenever possible. For instance:
ergc -Ofast examples/tester.erg