cyanxiao / greenlab

Team GreenGen fork of Experiment Runner, containing replication steps for the experiment.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GreenLab

Green Lab Profiling

We have a separate README for the Green Lab Profiling project, which uses Experiment Runner as its infrastructure. You can find it here.

It lists the steps to reproduce the results of Comparative Analysis of Energy Efficiency between ChatGPT-Generated Codes and Handwritten Codes.

R code for the statistical analysis can be found here.

Results can be found here.

Note Before checking out the Green Lab Profiling, please read the following sections to install the Experiment Runner and try connecting Raspberry Pi with SSH.

How to Install Experiment Runner

cd experiment-runner/
pip install -r requirements.txt

To verify

python experiment-runner/ examples/hello-world/RunnerConfig.py

or if your Python 3 is not the default Python

python3 experiment-runner/ examples/hello-world/RunnerConfig.py

Connect with Raspberry Pi via SSH

The IP address of the Raspberry Pi can be found by running

ifconfig

The IP address is the one listed under eth0, followed by inet, because during the experiment we are using the network cable connection.

Then connect to the Raspberry Pi via SSH

ssh pi@{IP_ADDRESS}

Dependencies Installation on Raspberry Pi

Check if dependencies are already installed:

python3 --version

Python 3.9.6

sudo apt update
sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev wget
wget https://www.python.org/ftp/python/3.9.6/Python-3.9.6.tgz
tar -xf Python-3.9.6.tgz
cd Python-3.9.6
./configure
make -j 4
sudo make altinstall

About

Team GreenGen fork of Experiment Runner, containing replication steps for the experiment.


Languages

Language:Python 50.5%Language:C 17.4%Language:Java 13.8%Language:C++ 9.2%Language:JavaScript 7.3%Language:R 1.2%Language:Shell 0.5%Language:Makefile 0.0%