Skip to content

Kiwi Environment

steveri edited this page Feb 12, 2024 · 16 revisions

Documentation for using this repository on Kiwi.

GOOD LUCK

The information on this page is largely outdated and has been heavily deprecated over the last couple of years. The chances that you can successfully run garnet on kiwi (without using a docker container) is quite small. Nowadays we pretty much only build garnet in a carefully constructed docker environment. For details see https://github.com/StanfordAHA/aha/blob/master/Dockerfile.

Python

Kiwi comes with the latest Python 3. To create your own virtual environment, simply do

python3 -m virtualenv env

where env is the name for your virtual environment. To activate the virtual environment, simply do

source env/bin/activate

To deactivate, you can type deactivate in the command line.

CAD Tools

Run these commands and add them to your shell configuration file such as .bashrc

source /cad/modules/tcl/init/bash  # Change this based on your shell
module load base
module load genesis2
module load incisive

Updating Python Dependencies

Make sure you've activated your virtual environment

$ which pip
    /nobackupkiwi/keyi/AHA/garnet/env/bin/pip

You can then directly upgrade packages using pip

$ pip install --upgrade coreir

You can also install a specific version using the == specifier

$ pip install fault==1.0.3
Clone this wiki locally