Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a configuration called
sifive_rvv
to support RVV platforms beyond SiFive's x280. Essentially, the kernel code currently undersifive_x280
has been migrated tosifive_rvv
, but thepackm
kernel andgemm
andgemmtrsm
microkernels have been modified slightly so thatNR
is defined in terms of the machine'sVLEN
instead of hardcoded toVLEN = 512
.sifive_rvv
is currently compiled withVLEN = 128
(Zvl128
), the minimumVLEN
required by the standardV
extension, but users can modifymake_defs.mk
to change it to theVLEN
of their target machine for potentially better performance. Thesifive_x280
configuration is now defined in terms ofsifive_rvv
, calling the kernels fromsifive_rvv
and usingVLEN = 512
forpackm
,gemm
, andgemmtrsm
.This PR is based on #822.
Many thanks to Eric Love (@ericlove) and Aaron Hutchinson (@Aaron-Hutchinson) for their help with this PR.
@fgvanzee, @devinamatthews, and others, any feedback is appreciated!