__gnu_parallel::omp_loop_tag(3cxx)
π NAME π
__gnu_parallel::omp_loop_tag β bestie, this tag is literally telling the compiler "hey, run this in parallel with OpenMP dynamic load-balancing, k?" at compile time. No cap. π«Ά
(also, hi, this is a page from the libstdc++ manual, section 3cxx β more on that at the very bottom π)
β¨ SYNOPSIS β¨
#include <tags.h>
Inherits __gnu_parallel::parallel_tag β so it's giving "I'm a parallel tag, but make it OpenMP" π
π Public Member Functions π
_ThreadIndex __get_num_threads()β figure out how many threads we actually want, iykykvoid set_num_threads(_ThreadIndex __num_threads)β set the desired number of threads, periodt
πΈ Detailed Description πΈ
__gnu_parallel::omp_loop_tag recommends parallel execution using OpenMP dynamic load-balancing at compile time. That's the whole vibe. It's a little tag struct whose entire main character energy is "please parallelize me, and do the load balancing dynamically with OpenMP" β¨π₯
π Member Function Documentation π
π _ThreadIndex __gnu_parallel::parallel_tag::__get_num_threads () [inline], [inherited] π
Find out the desired number of threads. Literally its only job, and it ate. π
Returns
Desired number of threads. β
Referenced by β okay so this is a lot of references, but here's the full list, no skipping, fr fr:
__gnu_parallel::__parallel_sort()__gnu_parallel::__parallel_sort()__gnu_parallel::__parallel_sort()__gnu_parallel::__parallel_sort()__gnu_parallel::__parallel_sort()__gnu_parallel::__parallel_sort()__gnu_parallel::__parallel_sort()
(yes, that's the same function seven times β that's exactly how the original lists it, and we do not merge them around here π)
π¦ void __gnu_parallel::parallel_tag::set_num_threads (_ThreadIndex __num_threads) [inline], [inherited] π¦
Set the desired number of threads. Iconic behaviour, honestly.
Parameters
__num_threadsβ the desired number of threads π
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. So nobody hand-wrote this one, it's giving β¨auto-generated realnessβ¨ π
π real talk, bestie:__get_num_threads()andset_num_threads()are inherited from__gnu_parallel::parallel_tag, so they live over there β this page just shows them so you're not lost. π«Ά
and that's the whole page, bestie β stay hydrated, read your tags, and remember: compile-time vibes only πβ¨ππ¦πΈπ π«Άππ₯ππβππππ§π
this has been libstdc++, page __gnu_parallel::omp_loop_tag(3cxx) β slay, bye! π
π¦ where this page comes from
- debian trixie: libstdc++-12-doc 12.4.0-5
- debian trixie: libstdc++-13-doc 13.3.0-16
- debian trixie: libstdc++-14-doc 14.2.0-19
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2.1
- ubuntu noble: libstdc++-11-doc 11.4.0-9ubuntu1
- ubuntu noble: libstdc++-11-doc 11.5.0-1ubuntu1~24.04.1
- ubuntu noble: libstdc++-12-doc 12.3.0-17ubuntu1
- ubuntu noble: libstdc++-12-doc 12.4.0-2ubuntu1~24.04.1
- ubuntu noble: libstdc++-13-doc 13.2.0-23ubuntu4
- ubuntu noble: libstdc++-13-doc 13.3.0-6ubuntu2~24.04.1
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- ubuntu noble: libstdc++-14-doc 14.2.0-4ubuntu2~24.04.1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1.1
- ubuntu questing: libstdc++-12-doc 12.5.0-6ubuntu1
- ubuntu questing: libstdc++-13-doc 13.4.0-4ubuntu1
- ubuntu questing: libstdc++-14-doc 14.3.0-8ubuntu1
- ubuntu questing: libstdc++-15-doc 15.2.0-4ubuntu4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms