-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Improve yolov8 post-processing efficiency. #5658
base: master
Are you sure you want to change the base?
Conversation
… from 100000 to 1000.
|
object.label = max_s_ptr - scores_ptr; | ||
object.prob = score; | ||
object.rect = bbox; | ||
#pragma omp critical |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but simpleomp does not support critical clause
const size_t stride = num_anchors; | ||
const size_t num_threads = omp_get_max_threads(); | ||
const size_t chunk_size = stride / num_threads; | ||
#pragma omp parallel shared(detections) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but simpleomp does not support shared clause
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but simpleomp does not support shared clause
What alternatives are there to achieve similar functionality?😭
Hello @nihui, I found the some ncnn's example usage of OpenMP parallel sections (
But I checked the implementation of src/simpleomp.cpp and I did not find the necessary functions for sections:
Does this mean that simpleomp will not support OpenMP sections feature for a long time? If we follow the same standard, since the example previously allowed the use of features that simpleomp does not support, the OpenMP shared clause feature should be allowed to be added.🙈 |
Using OpenMP to improve yolov8 post-processing efficiency.