Skip to content

Commit

Permalink
clang: Bump to experimental -mno-fdiv toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
colluca committed Oct 24, 2023
1 parent 44d89bb commit b6d882b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ variables:
VCS: vcs-2020.12
VERILATOR: verilator-4.110
QUESTA: questa-2022.3
LLVM_BINROOT: /usr/pack/riscv-1.0-kgf/pulp-llvm-0.12.0/bin
CLANG: /usr/pack/riscv-1.0-kgf/pulp-llvm-0.12.0/bin/clang
LLVM_BINROOT: /usr/scratch/vulcano/colluca/workspace/NOFDIV/install/bin
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER: /usr/pack/gcc-9.2.0-af/linux-x64/bin/gcc
LLVM_SYS_120_PREFIX: /usr/pack/llvm-12.0.1-af
CMAKE: cmake-3.18.1
Expand All @@ -22,6 +21,7 @@ before_script:
- $PYTHON -m venv .venv
- source .venv/bin/activate
- pip install -r python-requirements.txt
- $BENDER vendor init

##############
# Build docs #
Expand All @@ -37,7 +37,6 @@ docs:

snitch-cluster-sw:
script:
- $BENDER vendor init
- cd target/snitch_cluster
- make sw
artifacts:
Expand All @@ -48,7 +47,6 @@ snitch-cluster-sw:

snitch-cluster-sw-banshee:
script:
- $BENDER vendor init
- cd target/snitch_cluster
- make SELECT_RUNTIME=banshee sw
artifacts:
Expand Down
4 changes: 2 additions & 2 deletions target/snitch_cluster/sw/run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ runs:
# - elf: apps/dnn/gelu/build/gelu.elf # seems like it stalls
# - elf: apps/dnn/conv2d/build/conv2d.elf # fails with exit code 32
# - elf: apps/dnn/fusedconv/build/fusedconv.elf # fails newly
# - elf: apps/dnn/layernorm/build/layernorm.elf
- elf: apps/dnn/layernorm/build/layernorm.elf
# throws illegal instruction on FDIV in simulation
# - elf: apps/dnn/softmax/build/softmax.elf
- elf: apps/dnn/softmax/build/softmax.elf
# throws illegal instruction on FDIV in simulation
- elf: apps/montecarlo/pi_estimation/build/pi_estimation.elf
2 changes: 1 addition & 1 deletion target/snitch_cluster/sw/toolchain.mk
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ RISCV_CFLAGS += -mcpu=snitch
RISCV_CFLAGS += -menable-experimental-extensions
RISCV_CFLAGS += -mabi=ilp32d
RISCV_CFLAGS += -mcmodel=medany
# RISCV_CFLAGS += -mno-fdiv # Not supported by Clang
RISCV_CFLAGS += -mno-fdiv
RISCV_CFLAGS += -ffast-math
RISCV_CFLAGS += -fno-builtin-printf
RISCV_CFLAGS += -fno-builtin-sqrtf
Expand Down

0 comments on commit b6d882b

Please sign in to comment.