Skip to content

Instantly share code, notes, and snippets.

@h0lyalg0rithm
Created April 23, 2023 19:16
Show Gist options
  • Save h0lyalg0rithm/9e609b3efc8ea68e3d6ccb28c2267985 to your computer and use it in GitHub Desktop.
Save h0lyalg0rithm/9e609b3efc8ea68e3d6ccb28c2267985 to your computer and use it in GitHub Desktop.
Build riscv-perf-model
sudo apt-get install build-essential clang python3 cmake libboost-all-dev libyaml-cpp-dev rapidjson-dev libsqlite3-dev zlib1g-dev libhdf5-cpp-103 libhdf5-dev cppcheck doxygen graphviz zstd libzstd-dev texlive-font-utils -y
wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh && bash ./Miniforge3-Linux-x86_64.sh
source ~/.bashrc
git clone --recursive https://github.com/riscv-software-src/riscv-perf-model.git
git clone --branch map_v1.1.0 https://github.com/sparcians/map.git
conda env create -f riscv-perf-model/conda/environment.yml
conda init bash
conda activate riscv_perf_model
mkdir -p map/sparta/release; cd map/sparta/release;
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j$(nproc --all)
cd ~;
mkdir -p riscv-perf-model/release; cd riscv-perf-model/release;
cmake .. -DCMAKE_BUILD_TYPE=Release -DSPARTA_BASE=/home/ubuntu-test/map/sparta
make -j$(nproc --all)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment