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

Changes for setting number of threads used in OpenMP for HOST functions #120

Merged

Conversation

sampath1117
Copy link
Collaborator

  • Added another parameter numThreads in handle structure
  • Updated batchsize to numThreads for OpenMP to all tensor HOST functions and batchpd HOST functions
  • Updated test suite with latest function used for handle creation

@r-abishek r-abishek changed the base branch from ar/test_suite_readme_update to ar/omp_threads_update March 31, 2023 17:53
@@ -39,6 +39,7 @@ extern "C" {
// *param[in] kernelSize kernel size for erode (a single Rpp32u odd number with kernelSize = 3/5/7/9 that applies to all images in the batch)
// *param[in] roiTensorSrc ROI data for each image in source tensor (2D tensor of size batchSize * 4, in either format - XYWH(xy.x, xy.y, roiWidth, roiHeight) or LTRB(lt.x, lt.y, rb.x, rb.y))
// *param[in] roiType ROI type used (RpptRoiType::XYWH or RpptRoiType::LTRB)
// *param[in] rppHandle HOST-handle/HIP-handle for "_gpu" variants and Host-handle for "_host" variants
Copy link
Owner

Choose a reason for hiding this comment

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

HOST-handle/HIP-handle for "_gpu" variants and Host-handle for "_host" variants
Why is it "HOST-handle/HIP-handle for "_gpu" variants"?

Copy link
Owner

Choose a reason for hiding this comment

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

Does batchPD code work with any handle type?

@r-abishek
Copy link
Owner

@sampath1117 Hope you've verified working of previous/new test suites with this set of common changes

@r-abishek r-abishek added the enhancement New feature or request label Mar 31, 2023
@r-abishek r-abishek added this to the sow9ms2 milestone Mar 31, 2023
@r-abishek r-abishek merged commit b9e000e into r-abishek:ar/omp_threads_update Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants