From c7f50ed310259caf35fe0c90acf8ed78fff5d2ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20B=C3=B6ck?= Date: Tue, 11 Jun 2024 13:09:55 +0100 Subject: [PATCH] [toolchain] Make snitch cluster with `fdiv` the default --- runtime/toolchain/Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/runtime/toolchain/Dockerfile b/runtime/toolchain/Dockerfile index 6a13cda..07470dd 100644 --- a/runtime/toolchain/Dockerfile +++ b/runtime/toolchain/Dockerfile @@ -149,16 +149,16 @@ FROM snitch-verilator-build-base as snitch-verilator-build RUN cd ./snitch_cluster/target/snitch_cluster && \ make VLT_USE_LLVM=ON LDFLAGS=-static bin/snitch_cluster.vlt -j$(nproc) RUN mkdir -p $INSTALL_DIR/quidditch-toolchain/bin/ -RUN cp ./snitch_cluster/target/snitch_cluster/bin/snitch_cluster.vlt $INSTALL_DIR/quidditch-toolchain/bin/ -RUN strip $INSTALL_DIR/quidditch-toolchain/bin/snitch_cluster.vlt +RUN cp ./snitch_cluster/target/snitch_cluster/bin/snitch_cluster.vlt $INSTALL_DIR/quidditch-toolchain/bin/snitch_cluster_nofdiv.vlt +RUN strip $INSTALL_DIR/quidditch-toolchain/bin/snitch_cluster_nofdiv.vlt FROM snitch-verilator-build-base as snitch-fdiv-verilator-build RUN cd ./snitch_cluster/target/snitch_cluster && \ make CFG_OVERRIDE=cfg/fdiv.hjson VLT_USE_LLVM=ON LDFLAGS=-static bin/snitch_cluster.vlt -j$(nproc) RUN mkdir -p $INSTALL_DIR/quidditch-toolchain/bin/ -RUN cp ./snitch_cluster/target/snitch_cluster/bin/snitch_cluster.vlt $INSTALL_DIR/quidditch-toolchain/bin/snitch_cluster_fdiv.vlt -RUN strip $INSTALL_DIR/quidditch-toolchain/bin/snitch_cluster_fdiv.vlt +RUN cp ./snitch_cluster/target/snitch_cluster/bin/snitch_cluster.vlt $INSTALL_DIR/quidditch-toolchain/bin/ +RUN strip $INSTALL_DIR/quidditch-toolchain/bin/snitch_cluster.vlt FROM alpine:3.18 as spike-build @@ -184,7 +184,7 @@ ARG INSTALL_DIR COPY --from=toolchain-build $INSTALL_DIR/quidditch-toolchain $INSTALL_DIR/quidditch-toolchain COPY --from=bender-build $INSTALL_DIR/quidditch-toolchain/bin/bender $INSTALL_DIR/quidditch-toolchain/bin COPY --from=pulp-build $INSTALL_DIR/quidditch-toolchain/bin/pulp-as $INSTALL_DIR/quidditch-toolchain/bin -COPY --from=snitch-verilator-build $INSTALL_DIR/quidditch-toolchain/bin/snitch_cluster.vlt $INSTALL_DIR/quidditch-toolchain/bin -COPY --from=snitch-fdiv-verilator-build $INSTALL_DIR/quidditch-toolchain/bin/snitch_cluster_fdiv.vlt $INSTALL_DIR/quidditch-toolchain/bin +COPY --from=snitch-verilator-build $INSTALL_DIR/quidditch-toolchain/bin/snitch_cluster_nofdiv.vlt $INSTALL_DIR/quidditch-toolchain/bin +COPY --from=snitch-fdiv-verilator-build $INSTALL_DIR/quidditch-toolchain/bin/snitch_cluster.vlt $INSTALL_DIR/quidditch-toolchain/bin COPY --from=spike-build $INSTALL_DIR/bin/spike $INSTALL_DIR/quidditch-toolchain/bin COPY --from=spike-build $INSTALL_DIR/bin/spike-dasm $INSTALL_DIR/quidditch-toolchain/bin