3.4 KiB
3.4 KiB
Installing and Setting Up the Vortex Environment
Ubuntu 18.04, 20.04
-
Install the following dependencies:
sudo apt-get install build-essential zlib1g-dev libtinfo-dev libncurses5 uuid-dev libboost-serialization-dev libpng-dev libhwloc-dev -
Upgrade gcc to 11:
sudo apt-get install gcc-11 g++-11Multiple gcc versions on Ubuntu can be managed with update-alternatives, e.g.:
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 9 sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 9 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 11 sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 11 -
Download the Vortex codebase:
git clone --recursive https://github.com/vortexgpgpu/vortex.git -
Install Vortex's prebuilt toolchain:
cd vortex sudo ./ci/toolchain_install.sh -all # By default, the toolchain will install to /opt folder. This is recommended, but you can install the toolchain to a different directory by setting DESTDIR. DESTDIR=$TOOLDIR ./ci/toolchain_install.sh -all -
Set up environment:
export VORTEX_HOME=$TOOLDIR/vortex export LLVM_VORTEX=$TOOLDIR/llvm-vortex export LLVM_POCL=$TOOLDIR/llvm-pocl export POCL_CC_PATH=$TOOLDIR/pocl/compiler export POCL_RT_PATH=$TOOLDIR/pocl/runtime export RISCV_TOOLCHAIN_PATH=$TOOLDIR/riscv-gnu-toolchain export VERILATOR_ROOT=$TOOLDIR/verilator export SV2V_PATH=$TOOLDIR/sv2v export YOSYS_PATH=$TOOLDIR/yosys export PATH=$YOSYS_PATH/bin:$SV2V_PATH/bin:$VERILATOR_ROOT/bin:$PATH -
Build Vortex
make
RHEL 8
Note: depending on the system, some of the toolchain may need to be recompiled for non-Ubuntu Linux. The source for the tools can be found here.
-
Install the following dependencies:
sudo yum install libpng-devel boost boost-devel boost-serialization libuuid-devel opencl-headers hwloc hwloc-devel gmp-devel compat-hwloc1 -
Upgrade gcc to 11:
sudo yum install gcc-toolset-11Multiple gcc versions on Red Hat can be managed with scl
-
Install MPFR 4.2.0:
Download the source and follow the installation documentation.
-
Download the Vortex codebase:
git clone --recursive https://github.com/vortexgpgpu/vortex.git -
Install Vortex's prebuilt toolchain:
cd vortex sudo ./ci/toolchain_install.sh -all # By default, the toolchain will install to /opt folder. This is recommended, but you can install the toolchain to a different directory by setting DESTDIR. DESTDIR=$TOOLDIR ./ci/toolchain_install.sh -all -
Set up environment:
export VORTEX_HOME=$TOOLDIR/vortex export LLVM_VORTEX=$TOOLDIR/llvm-vortex export LLVM_POCL=$TOOLDIR/llvm-pocl export POCL_CC_PATH=$TOOLDIR/pocl/compiler export POCL_RT_PATH=$TOOLDIR/pocl/runtime export RISCV_TOOLCHAIN_PATH=$TOOLDIR/riscv-gnu-toolchain export VERILATOR_ROOT=$TOOLDIR/verilator export SV2V_PATH=$TOOLDIR/sv2v export YOSYS_PATH=$TOOLDIR/yosys export PATH=$YOSYS_PATH/bin:$SV2V_PATH/bin:$VERILATOR_ROOT/bin:$PATH export LD_LIBRARY_PATH=<path to mpfr>/src/.libs:$LD_LIBRARY_PATH -
Build Vortex
make