-
Notifications
You must be signed in to change notification settings - Fork 1k
towards #4200, overhead in dogroups #4558
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
Conversation
src/subset.c
Outdated
| #define PARLOOP(_NAVAL_) \ | ||
| if (anyNA) { \ | ||
| _Pragma("omp parallel for num_threads(getDTthreads(n, true))") \ | ||
| _Pragma("omp parallel for num_threads(nth)") \ |
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.
- tried turning it into
omp parallel for if (nth > 1) num_threads...but it makes no difference. - tried using
if (nth > 1) _Pragma("...")but it makes result a garbage
so I ended up duplicating whole macro for single threaded mode
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4558 +/- ##
=======================================
Coverage 99.61% 99.61%
=======================================
Files 73 73
Lines 14118 14119 +1
=======================================
+ Hits 14063 14064 +1
Misses 55 55 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
I also tried simpler approach, eliminating |
timings in #4200 (comment)
probably qualifies to close #4200