Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vector ACT #23

Open
2 of 13 tasks
jjscheel opened this issue Mar 17, 2023 · 59 comments
Open
2 of 13 tasks

Vector ACT #23

jjscheel opened this issue Mar 17, 2023 · 59 comments
Assignees

Comments

@jjscheel
Copy link
Contributor

jjscheel commented Mar 17, 2023

Technical Group

Vector TG

ratification-pkg

Vector

Technical Liaison

Krste

Task Category

Arch Tests

Task Sub Category

  • gcc
  • binutils
  • gdb
  • intrinsics
  • Java
  • KVM
  • ld
  • llvm
  • Linux kernel
  • QEMU
  • Spike

Ratification Target

4Q2021

Statement of Work (SOW)

SOW: link

SOW Signoffs:

  • Task group liaison sign-off date:
  • Development partner sign-off date:
  • ACT SIG sign-off date (if ACT work):

Waiver

  • Freeze
  • Ratification

Pull Request Details

No response

@jjscheel jjscheel self-assigned this Mar 17, 2023
@jjscheel jjscheel moved this from As-planned to Late in RISC-V DevPartner Work Mar 17, 2023
@jjscheel jjscheel moved this from Late to At-risk in RISC-V DevPartner Work Mar 17, 2023
@jjscheel
Copy link
Contributor Author

Update from Xi:

We were working on the exception tests for RVV. We also refined Mask instruction to address the case of non-deterministic mask bits.

We plan to submit the PR somewhere next week and kick off the review process.

@jjscheel
Copy link
Contributor Author

jjscheel commented May 2, 2023

@allenjbaum and Xi need to work to find a time where the RIOS representative can meeting with key people from ACT group and begin to engage.

This is the key next step, along with submitting PR for work.

@allenjbaum
Copy link

allenjbaum commented May 2, 2023 via email

@jjscheel
Copy link
Contributor Author

jjscheel commented May 2, 2023

I've just added @hushenwei2000 to this topic. Welcome Shenwei!

@allenjbaum, I believe that Xi was working with Krste directly. Your question is a great one and we should see if Krste ever delegated. If not, I'd be inclined to ask the person helping @billmcspadden-riscv with the SAIL work to see if they'd help with ACT too. If not, we can ask Krste and Earl. Sound ok?

@allenjbaum
Copy link

allenjbaum commented May 2, 2023 via email

@jjscheel
Copy link
Contributor Author

jjscheel commented May 4, 2023

Yes, @allenjbaum, the SAIL community asked a member of the Vector TG to attend their meetings and help review the SAIL code. Right, @billmcspadden-riscv?

Perhaps this same person would do the same for ACT.

@billmcspadden-riscv
Copy link

billmcspadden-riscv commented May 4, 2023 via email

@jjscheel
Copy link
Contributor Author

jjscheel commented May 4, 2023

Thanks, @billmcspadden-riscv. I'll reach out directly before adding him.

@jjscheel
Copy link
Contributor Author

jjscheel commented May 9, 2023

@hushenwei2000, please work with @allenjbaum and the Arch Test SIG to begin integrating the Vector ACT. Let me know when you submit your first PR.

@jjscheel
Copy link
Contributor Author

@hushenwei2000, thanks for attending today's meeting. I'm happy to hear that you and allen are beginning to work together. Please let me know when that first PR is submitted.

As discussed, there likely will be code re-work to split out common testing framework for all vector items. This will be needed by function currently being discussed in the Arch Test SIG such as Vector Crypto and other work not yet discussed, Zvfh/Zvfhmin. So, the key idea is to do integrate the new testing in such a way as to allow for commonality in future vector instructions.

@jjscheel jjscheel removed their assignment Jul 18, 2023
@hushenwei2000
Copy link

After the last meeting with test SIG, I learned that my previous tests had a self check and did not comply with the Test Format.

Now, I am changing my test structure to allow the tests to run and compare signatures on RISCOF. I have completed the ACT with vsew=32, and other configurations will be completed as soon as possible.

You can try in my repo: https://github.com/hushenwei2000/rvv-atg/tree/new_test_format

@jjscheel
Copy link
Contributor Author

Thanks, @hushenwei2000! It sounds like very positive work is underway. This is VERY good!!!

@allenjbaum
Copy link

allenjbaum commented Jul 19, 2023 via email

@hushenwei2000
Copy link

I guess I have completed the code modifications to support all configurations. The tests I generated can now generate signature files, and I have tested them in the RISCOF framework.

However, there are sometimes inconsistencies in the signatures between Sail and Spike, which may be a bug in Sail.

You can try it according to the README in https://github.com/hushenwei2000/rvv-atg/tree/new_test_format

I would like to know what I should do next?

@allenjbaum
Copy link

allenjbaum commented Aug 14, 2023 via email

@hushenwei2000
Copy link

Unfortunately, the Sail and Spike signatures of all instructions are inconsistent.

But in my previous test with expected answers, Sail passed all the tests.

Therefore, I suspect that there was an error in Sail about the load/store instruction used for reading/writing signatures.

@allenjbaum
Copy link

allenjbaum commented Aug 15, 2023 via email

@jjscheel
Copy link
Contributor Author

jjscheel commented Sep 1, 2023

@hushenwei2000, would you kindly provide a written update here on your progress? Thanks!

@hushenwei2000
Copy link

The issue of inconsistent signatures has been resolved by adding initial VLEN configuration in Sail model. And that means the functionality of the test generator is okay.

We will continue to discuss the issue of coverage with Allen.

@jjscheel
Copy link
Contributor Author

@hushenwei2000, any updates?

@allenjbaum
Copy link

allenjbaum commented Mar 20, 2024 via email

@Oxyw
Copy link

Oxyw commented Mar 20, 2024

Yes, and I think it‘s also hard for covering different vstart to be put into cgf format.

It sounds like you're not putting your coverage into the .cgf format , so we can't track it with ISAC spec, which is a bit of a problem we should talk about in the arch-test meeting. This would be the first coverage test that doesn't use ISAC to measure coverage. We allow test generation to to CTG or any other test generator, and even manual tests, but this would be the first time that a different coverage tool is used.

On Tue, Mar 19, 2024 at 2:55 AM WU Xieyuan @.> wrote: Updates: cover different mask value (walking_zeros, walking_ones, checkerboard pattern) — Reply to this email directly, view it on GitHub <#23 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHPXVJQSSBLGCRAEMLWMTDDYZADPLAVCNFSM6AAAAAAV6UE5A6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBWGU4DOMJTGY . You are receiving this because you were mentioned.Message ID: @.>

@allenjbaum
Copy link

allenjbaum commented Mar 20, 2024 via email

@Oxyw
Copy link

Oxyw commented Apr 2, 2024

updates: 1. compact some macro generator codes; 2. change all mask related tests from vlex to vlm for v0; 3. add floating point dataset

@Oxyw
Copy link

Oxyw commented Apr 16, 2024

updates: 1. extract 12 ibm fp datasets from rpt instead of hand-written in test generator; 2. modify tests for vwred

@jjscheel
Copy link
Contributor Author

Sounds like good progress. What work remains to have accepted PRs?

@Oxyw
Copy link

Oxyw commented Apr 18, 2024

In addition to the remaining tasks outlined in the coverage point draft, significant code refactoring is also needed. Currently, making minor changes requires modifications across a large portion of the code. The refactoring effort is substantial, and completing it may take some time if I'm working on it alone.

@Oxyw
Copy link

Oxyw commented May 14, 2024

Update: save vcsr in signature along with vd, fcsr and xstatus CSRs

@allenjbaum
Copy link

Saving xcsr requires eiable.ther running in M/S modes, or transitioning to them prior to saving.
Or not running in Umode, which might also be accept

@Oxyw
Copy link

Oxyw commented May 28, 2024

updates: fixes (vfwred; some macros) & code refactoring

@jjscheel
Copy link
Contributor Author

Thanks, @Oxyw. Do you have a date when you think you'll have a first PR for your work?

@Oxyw
Copy link

Oxyw commented Jun 2, 2024

Thanks, @Oxyw. Do you have a date when you think you'll have a first PR for your work?

I anticipate that it will be around July, as I will be quite busy over the next two weeks.

@jjscheel
Copy link
Contributor Author

@Oxyw, have you received the requested feedback from @allenjbaum on the cover points draft: RVV Test Coverage Points?

@Oxyw
Copy link

Oxyw commented Jun 24, 2024

@Oxyw, have you received the requested feedback from @allenjbaum on the cover points draft: RVV Test Coverage Points?

Thank you for checking in. As of now, I haven't received the requested feedback on the draft. I'll follow up and inform you as soon as I have any updates.

@Oxyw
Copy link

Oxyw commented Jul 23, 2024

updates: checked for missing instructions, modified macros, and fixed discovered bugs.

@jjscheel
Copy link
Contributor Author

@Oxyw, thanks for the update. When do you believe you'll be ready to submit a PR? What works remains before doing so?

@Oxyw
Copy link

Oxyw commented Jul 23, 2024

@Oxyw, thanks for the update. When do you believe you'll be ready to submit a PR? What works remains before doing so?

I think I will be ready to submit the PR in the end of July or early August. Before doing so, I still need to check and fix bugs in the existing tests. Additionally, it is also necessary to add some tests for invalid situations.

@Oxyw
Copy link

Oxyw commented Aug 6, 2024

I'm sorry that I won't be able to submit the PR this week. I've recently identified some previously undetected issues with the load/store instructions that need to be addressed. After these modifications, all legal cases in the coverage points draft will be covered. However, testing for illegal cases still requires further discussion via email.

@jjscheel
Copy link
Contributor Author

jjscheel commented Aug 6, 2024

Thanks, @Oxyw. I appreciate the update. Finding issues IS progress!

@Oxyw
Copy link

Oxyw commented Aug 20, 2024

still working on fixing and refactoring the tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: At-risk
Development

No branches or pull requests

6 participants