Skip to content

Add support for BF16 sbgemm on RISCV.#5454

Merged
martin-frbg merged 1 commit intoOpenMathLib:developfrom
ChipKerchner:addRISCV64_BFLOAT16
Sep 23, 2025
Merged

Add support for BF16 sbgemm on RISCV.#5454
martin-frbg merged 1 commit intoOpenMathLib:developfrom
ChipKerchner:addRISCV64_BFLOAT16

Conversation

@ChipKerchner
Copy link
Copy Markdown
Contributor

Add support for BF16 sbgemm on RISCV.

#5279

Comment thread Makefile.riscv64
FCOMMON_OPT += -march=rv64imafdcv_zba_zbb_zfh -mabi=lp64d -static
endif
ifeq ($(CORE), RISCV64_ZVL256B)
RISCV64_OPT = rv64imafdcv
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since more than one option can be active, we need to start chaining compiler options for -march

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, thanks.

endif

ifeq ($(BUILD_BFLOAT16), 1)
ifeq ($(BUILD_HFLOAT16), 1)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes a bug from the original RISCV64 SHGEMM MR.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@martin-frbg martin-frbg added this to the 0.3.31 milestone Sep 22, 2025
@martin-frbg martin-frbg merged commit fe5402d into OpenMathLib:develop Sep 23, 2025
82 of 88 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants