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 30774f3 commit 68a927c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
6 changes: 1 addition & 5 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +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
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
LLVM_BINROOT: /usr/scratch/vulcano/colluca/workspace/NOFDIV/install/bin

before_script:
- $PYTHON -m venv .venv
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 68a927c

Please sign in to comment.