Skip to content

Commit 9427eaf

Browse files
committed
Reduce flags for BF16 to only needed ones.
1 parent 3116749 commit 9427eaf

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Makefile.riscv64

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ifeq ($(BUILD_HFLOAT16), 1)
1111
RISCV64_OPT := $(RISCV64_OPT)_zvfh_zfh
1212
endif
1313
ifeq ($(BUILD_BFLOAT16), 1)
14-
RISCV64_OPT := $(RISCV64_OPT)_zfbfmin_zvfbfmin_zvfbfwma
14+
RISCV64_OPT := $(RISCV64_OPT)_zvfbfwma
1515
endif
1616
ifeq ($(CORE), RISCV64_ZVL256B)
1717
CCOMMON_OPT += -march=$(RISCV64_OPT)_zvl256b -mabi=lp64d

driver/others/dynamic_riscv64.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,6 @@ struct riscv_hwprobe {
9999
#define RISCV_HWPROBE_IMA_V (1 << 2)
100100
#define RISCV_HWPROBE_EXT_ZFH (1 << 27)
101101
#define RISCV_HWPROBE_EXT_ZVFH (1 << 30)
102-
#define RISCV_HWPROBE_EXT_ZFBFMIN (1 << 52)
103-
#define RISCV_HWPROBE_EXT_ZVFBFMIN (1 << 53)
104102
#define RISCV_HWPROBE_EXT_ZVFBFWMA (1 << 54)
105103

106104
#ifndef NR_riscv_hwprobe
@@ -174,7 +172,7 @@ static gotoblas_t* get_coretype(void) {
174172
#if defined(BUILD_HFLOAT16)
175173
vector_mask = (RISCV_HWPROBE_IMA_V | RISCV_HWPROBE_EXT_ZFH | RISCV_HWPROBE_EXT_ZVFH);
176174
#elif defined(BUILD_BFLOAT16)
177-
vector_mask = (RISCV_HWPROBE_IMA_V | RISCV_HWPROBE_EXT_ZFBFMIN | RISCV_HWPROBE_EXT_ZVFBFMIN | RISCV_HWPROBE_EXT_ZVFBFWMA);
175+
vector_mask = (RISCV_HWPROBE_IMA_V | RISCV_HWPROBE_EXT_ZVFBFWMA);
178176
#else
179177
vector_mask = RISCV_HWPROBE_IMA_V;
180178
#endif

0 commit comments

Comments
 (0)