Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Update histogram documentation. #351

Merged
merged 1 commit into from
Aug 16, 2021
Merged

Conversation

alliepiper
Copy link
Collaborator

  • Remove extra values from d_histogram result.

  • Update input samples to avoid fp values that are the same as
    a computed level. These introduce ambiguity into the result due
    to fp rounding/math.

    cc: @cliffburdick

@alliepiper alliepiper added the only: docs Documentation changes only. Doesn't need code CI. label Jul 28, 2021
@alliepiper alliepiper added this to the 1.14.0 milestone Jul 28, 2021
@alliepiper
Copy link
Collaborator Author

@senior-zero This needs a review when you get a chance.

Copy link
Collaborator

@gevtushenko gevtushenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's definitely more unambiguous now, thanks! I think we should fix the remaining documentation and merge this PR.

@@ -178,9 +178,9 @@ struct DeviceHistogram
* int num_row_samples; // e.g., 5
* int num_rows; // e.g., 2;
* size_t row_stride_bytes; // e.g., 7 * sizeof(float)
* float* d_samples; // e.g., [2.2, 6.0, 7.1, 2.9, 3.5, -, -,
* // 0.3, 2.9, 2.0, 6.1, 999.5, -, -]
* int* d_histogram; // e.g., [ -, -, -, -, -, -, -, -]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that the same fix is required for two overloads of HistogramRange.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, I thought I'd checked the other examples. I'll update this before merging.

@alliepiper alliepiper self-assigned this Jul 30, 2021
- Remove extra values from `d_histogram` result.
- Update input samples to avoid fp values that are the same as
  a computed level. These introduce ambiguity into the result due
  to fp rounding/math.
@alliepiper alliepiper merged commit 571aab9 into NVIDIA:main Aug 16, 2021
@alliepiper alliepiper deleted the histo_docs branch August 16, 2021 20:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
only: docs Documentation changes only. Doesn't need code CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants