Repository navigation
Conversation
|
|
||
| // Reference values are r1, measured values are r2 | ||
| template <class R1, class R2> | ||
| double rms_range(R1&& r1, R2&& r2) |
There was a problem hiding this comment.
I think we should rename these arguments to make it clear that r1 is intended to be the reference.
| double mag2 = static_cast<double>(*std::max_element(r2.begin(), r2.end(), compare_mag)); | ||
| double mag = | ||
| std::max({std::fabs(mag1), std::fabs(mag2), std::numeric_limits<double>::min()}); | ||
| return std::sqrt(square_difference) / (std::sqrt(n) * mag); | ||
| double normalizer = std::max({std::fabs(mag1), std::numeric_limits<double>::min()}); | ||
| return std::sqrt(square_difference) / (std::sqrt(n) * normalizer); |
There was a problem hiding this comment.
Hehe this will be a spicy one.
Interesting find though!
|
Starting CI! |
dd06398 to
389e109
Compare
|
Restarting CI again. |
|
Failing on formatting. |
389e109 to
fea5f7d
Compare
|
@BrianHarrisonAMD opsie, missed to run this before. Should be ok now! |
|
Btw I see that some smoke tests are failing for gfx90a (MI200), but I have double-checked on our side and they pass on our MI200s, how should we proceed for those? |
Looks like it was stopped / aborted before fully finishing. |
fea5f7d to
83c6070
Compare
|
@BrianHarrisonAMD any updates on this? |
|
I can start the build again, and let @BradPepersAMD know about it. |
|
CI running now. |
83c6070 to
0ecf7af
Compare
|
Did this pass CI and are we good to merge this now? |
|
We need to update this with latest, and re-run CI on it. |
|
Imported to ROCm/rocm-libraries |
## Scope While testing the variant 0 for bnorm backward spatial single, we observed that the error tolerance in MIOpenDriver is sub-optimal. For instance, the following results were observed Notice that the execution is successful, according to the driver checks. However, the error reported is high so this should actually be failing. ## Notes for the reviewer - Fixed the definition because it was too big compared to the rms values being computed (due to the rms normalization done). The method seems to also be using the same value for as the new implementation in . - Fixed the normalization of the rms. Previously we were finding the maximum absolute value from both the reference values and the results, but this may not be correct because it reduces the significance of the rms: if the results differ a lot from the reference values (e.g. ref values are order of 10 and results are order 1000) then the normalization will divide the rms obtained (which will be order of 100) by a number order of 1000 and then the normalized rms will be 100/1000 = 0.1 which is way lower than what it should be. - The new implementation only takes into account the reference results for computing the normalization factor --- 🔁 Imported from [ROCm/MIOpen#3638](ROCm/MIOpen#3638) 🧑💻 Originally authored by @Beanavil --------- Co-authored-by: Beatriz Navidad Vilches <beatriz@streamhpc.com> Co-authored-by: assistant-librarian[bot] <assistant-librarian[bot]@users.noreply.github.com> Co-authored-by: JonathanLichtnerAMD <195780826+JonathanLichtnerAMD@users.noreply.github.com> Co-authored-by: Milo Lurati <70884255+MiloLurati@users.noreply.github.com> Co-authored-by: Bálint Siklósi <25982046+sikba@users.noreply.github.com> Co-authored-by: Balint Siklosi <balint.siklosi@streamhpc.com> Co-authored-by: SreecharanGundaboluAMD <sgundabo@amd.com> Co-authored-by: Ewan Crawford <ewan.crawford@streamhpc.com>
Scope
While testing the variant 0 for bnorm backward spatial single, we observed that the error tolerance in MIOpenDriver is sub-optimal. For instance, the following results were observed
Notice that the execution is successful, according to the driver checks. However, the error reported is high so this should actually be failing.
Notes for the reviewer
maxrmsdefinition because it was too big compared to the rms values being computed (due to the rms normalization done). TheVerifyForwardmethod seems to also be using the same value formaxrmsas the new implementation inVerifyBackward.