Skip to content

Fixes RVV masked intrinsics for iamax/iamin/imax/imin kernels - #4125

Merged
martin-frbg merged 2 commits into
OpenMathLib:risc-vfrom
OMaghiarIMG:risc-v
Dec 7, 2023
Merged

martin-frbg merged 2 commits into
OpenMathLib:risc-vfrom
OMaghiarIMG:risc-v

Conversation

@OMaghiarIMG

Copy link
Copy Markdown
Contributor

Noticed that utests 9 to 12(ismin and ismax) are failing on x280 target when running with VLEN=128.
Since the code didn't seem to rely on x280's 512-bit VLEN, I tracked down the issue to the commit that updated the RVV intrinsics to v0.11.
After the update the functionality of the masked intrinsics has changed, _m translates to mask agnostic and no longer has maskedoff argument, previous functionality seems to be maintained by _mu intrinsics.
PR changes masked intrinsics from _m to _mu and reintroduces maskedoff argument.
All utests now pass using QEMU for x280 build and VLEN=128.

Changes masked intrinsics from _m to _mu and reintroduces maskedoff argument.
@ken-unger

Copy link
Copy Markdown

Thanks for the note @OMaghiarIMG. Just curious what LLVM version you are using for your testing? We have been using SiFive's 15.9 (2023.03) which is based from LLVM 16 if I understand correctly.

@OMaghiarIMG

OMaghiarIMG commented Jul 6, 2023 •

Copy link
Copy Markdown
Contributor Author

Thanks for the note @OMaghiarIMG. Just curious what LLVM version you are using for your testing? We have been using SiFive's 15.9 (2023.03) which is based from LLVM 16 if I understand correctly.

I've used a version based on LLVM 16 as well (available in Imagination's Catapult SDK).

@OMaghiarIMG

Copy link
Copy Markdown
Contributor Author

Added additional commit with same changes for izamax/izamin kernels.

@OMaghiarIMG

Copy link
Copy Markdown
Contributor Author

I built the BLAS-Tester tests, before changes multiple failures noted for AMIN/AMAX on vlen=512, agnostic policy = undisturbed:
xsl1blastst 118/132
xdl1blastst 96/112
xcl1blastst 103/121
xzl1blastst 102/121

After changes all Level 1 tests pass.

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.

3 participants