PAPI_unregister_thread(3)
π PAPI_unregister_thread π
Okay bestie, welcome to the PAPI manual, section 3 β this page is literally all about PAPI_unregister_thread, and itβs giving βtell PAPI a thread just ghostedβ energy π»β¨.
πΈ NAME πΈ
PAPI_unregister_thread β Notify PAPI that a thread has 'disappeared' π«Ά
β¨ SYNOPSIS β¨
This is the PAPI_unregister_thread page, and the detailed tea is right below π
π Detailed Description π
π Return values π
PAPI_ENOMEMβ Space could not be allocated to store the new thread information. πPAPI_ESYSβ A system or C library call failed inside PAPI, see theerrnovariable. π₯PAPI_ECMPβ Hardware counters for this thread could not be initialized. π
Hereβs the moment, no cap: PAPI_unregister_thread should be called when the user wants to shutdown a particular thread and free the associated thread ID. THIS IS IMPORTANT IF YOUR THREAD LIBRARY REUSES THE SAME THREAD ID FOR A NEW KERNEL LWP. OpenMP does this, fr fr.
OpenMP parallel regions, if separated by a call to omp_set_num_threads() will often kill off the underlying kernel LWPs and then start new ones for the next region. However, omp_get_thread_id() does not reflect this, as the thread IDs for the new LWPs will be the same as the old LWPs. PAPI needs to know that the underlying LWP has changed so it can set up the counters for that new thread. This is accomplished by calling this function, periodt π
.
π«Ά Author π«Ά
Generated automatically by Doxygen for PAPI from the source code β yes, the robots wrote this one π€β¨.
Signing off from PAPI_unregister_thread(3) β PAPI manual, Version 7.2.0.0, dated Wed Jun 25 2025 19:30:49 ππ¦π
π¦ where this page comes from
- nixos 26.05: papi 7.2.0
- nixpkgs unstable: papi 7.2.0
- opensuse-leap 16.0: papi-devel 7.2.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: papi-devel 7.2.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: papi-devel 7.2.0-160000.2.2 Β· BSD-3-Clause
- ubuntu resolute: libpapi-dev 7.2.0-2 Β· BSD-3-Clause
- ubuntu stonking: libpapi-dev 7.2.0-2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms