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

QR decomposition in cdios #95

Open
avanhatt opened this issue Apr 26, 2021 · 5 comments
Open

QR decomposition in cdios #95

avanhatt opened this issue Apr 26, 2021 · 5 comments
Assignees

Comments

@avanhatt
Copy link
Contributor

Debug c-based implementation of QR decomposition to reach parity with the Racket DSL.

@avanhatt
Copy link
Contributor Author

avanhatt commented May 6, 2021

In order to run translation validation on the two res.rkt results, we will need to modify the code in translation-validation.rkt. This code is called from main.rkt.

@avanhatt
Copy link
Contributor Author

avanhatt commented May 13, 2021

You can run translation validation with a command like make -B mat-mul-egg BACKEND_FLAGS=--validation (the -B forces recompilation).

@avanhatt
Copy link
Contributor Author

^ for the above command, I'd suggest testing with the following mat-mul-params file:

{
    "A-rows": 2,
    "A-cols": 2,
    "B-rows": 2,
    "B-cols": 2,
    "reg-size": 4
}

@avanhatt
Copy link
Contributor Author

Or, run with qr-decomp-params:

{
    "N": 2,
    "reg-size": 4
}

make -B qr-decomp-egg BACKEND_FLAGS=--validation

@avanhatt
Copy link
Contributor Author

avanhatt commented May 21, 2021

Goal:

  • Add a flag to main.rkt to do diff style translation validation (maybe --diff-tv)
  • When that flag and two files are passed, run a version of translation validation on those 2 explicit files (editing the translation validation function to work in that context)
    racket src/main.rkt --diff-tv cdios-qr-decomp-res.rkt old-qr-decomp-res.rkt

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

No branches or pull requests

2 participants