Setting up RVV Toolchain

Using Millennium A12 machine

Create target directory

mkdir /scratch/tk/Documents/RISCV/

Clone riscv-gnu-toolchain repository

cd /scratch/tk/Downloads/
git clone https://github.com/riscv-collab/riscv-gnu-toolchain.git
cd ./riscv-gnu-toolchain/

To enable fp16 support, we need GCC 14.1.0

cd ./gcc/

# checkout to gcc 14.1.0 release tag
git checkout releases/gcc-14.1.0

# or do
# git checkout cd0059a1976303638cea95f216de129334fc04d1

cd ../

The gcc submodule is from https://gcc.gnu.org/git/gcc.git, but here is a Github mirror of it that is more convenient to work with and reference:

Configure the project

./configure --prefix=/scratch/tk^Cocuments/RISCV/riscv64-unknown-too
lchain/ --with-cmodel=medany --enable-multilib

And build

make -j16

Last updated