トップ 一覧 Farm 検索 ヘルプ RSS ログイン

Diary/2024-12-28の変更点

  • 追加された行はこのように表示されます。
  • 削除された行はこのように表示されます。
!RISC-V
久しぶりに.
ツールチェインビルド.
 $ sudo apt-get install autoconf automake autotools-dev curl python3 \
                        python3-pip python3-tomli libmpc-dev libmpfr-dev \
                        libgmp-dev gawk build-essential bison flex \
                        texinfo gperf libtool patchutils bc zlib1g-dev \
                        libexpat-dev ninja-build git cmake libglib2.0-dev libslirp-dev
で依存ライブラリをインストールして,
 $ git clone https://github.com/riscv-collab/riscv-gnu-toolchain
 $ cd riscv-gnu-toolchain
 $ ./configure --prefix=$HOME/tools/riscv-gnu-toolchain \
               --with-arch=rv32gc --with-abi=ilp32d
 $ make -j8 linux
newlib版も作る
 $ ./configure --prefix=/home/miyo/tools/riscv-gnu-toolchain-newlib \
               --with-arch=rv32gc --with-abi=ilp32d
 $ make -j8
次はriscv-tests
 $ git clone https://github.com/riscv-software-src/riscv-tests
 $ cd riscv-tests
 $ git submodule update --init --recursive
 $ autoconf
 $ ./configure --prefix=/home/miyo/tools/riscv-tests --with-xlen=32
 $ make isa
makeすると,benchmarks/vec-sgemmのビルドができなかったので,
benchmarks/Makefileから削除した.