Skip to content

Conversation

@ChipKerchner
Copy link
Contributor

Add support for BF16 sbgemm on RISCV.

#5279

FCOMMON_OPT += -march=rv64imafdcv_zba_zbb_zfh -mabi=lp64d -static
endif
ifeq ($(CORE), RISCV64_ZVL256B)
RISCV64_OPT = rv64imafdcv
Copy link
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
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
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
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