Skip to content

Integrating Relative Error Handling in convex_hull, count_string and parallel_preorder #1671

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

rahul3verma
Copy link

@rahul3verma rahul3verma commented Mar 7, 2025

Description

Integrated utility class measurement for relative error analysis in mentioned examples.
Default values of n-of-iterations set to best scenarios found in initial analysis.

Fixes # - #1653

Co-authored-by: Hussain, Shaik (shaik.hussain@intel.com)
Signed-off-by: Hussain, Shaik (shaik.hussain@intel.com)
Signed-off-by: Verma, Rahul (rahul3.verma@intel.com)

Type of change

Choose one or multiple, leave empty if none of the other choices apply

Add a respective label(s) to PR if you have permissions

  • bug fix - change that fixes an issue
  • new feature - change that adds functionality
  • tests - change in tests
  • infrastructure - change in infrastructure and CI
  • documentation - documentation update

Tests

  • added - required for new features and some bug fixes
  • not needed

Documentation

  • updated in # - add PR number
  • needs to be updated
  • not needed

Breaks backward compatibility

  • Yes
  • No
  • Unknown

Notify the following users

List users with @shaikhus12122864 to send notifications

Other information

Copy link
Contributor

@dnmokhov dnmokhov left a comment

Choose a reason for hiding this comment

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

The examples_clang-format check fails because of the following 3 changes:

Comment on lines +41 to +43
static constexpr std::size_t hash_multiplier =
(std::size_t)((sizeof(std::size_t) == sizeof(unsigned)) ? 2654435769U
: 11400714819323198485ULL);
Copy link
Contributor

Choose a reason for hiding this comment

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

Revert.

Comment on lines 137 to +138
Index end;
edge(Index _p1, Index _p2) : start(_p1), end(_p2){};
edge(Index _p1, Index _p2) : start(_p1), end(_p2) {};
Copy link
Contributor

Choose a reason for hiding this comment

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

Revert.

Comment on lines 276 to 278
if (!util::silent) {
std::cout << "Starting TBB-buffered version of QUICK HULL algorithm"
<< "\n";
std::cout << "Starting TBB-buffered version of QUICK HULL algorithm" << "\n";
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Revert.

Comment on lines +69 to +70
if (numberOfIterations <= 0) {
std::cout << "Setting the number of iterations = " << numberOfIterations << " default\n";
Copy link
Contributor

Choose a reason for hiding this comment

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

The user-specified non-positive value is used here instead of the default.

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