PAPI_get_component_index(3)

🌸 NAME 🌸

Okay bestie, welcome to PAPI_get_component_index(3) β€” the PAPI manual page that returns the component index for the named component. That's the whole vibe. πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

The synopsis block on this page is literally just the heading Detailed Description β€” it's giving "mystery era," no cap. That's what's there, so we're keeping it exactly as it appears, and the actual deets start right below. 🫢

πŸ’« Detailed Description πŸ’«

This is where the useful stuff lives, bestie. Short, sweet, and lowkey to the point, fr fr.

πŸ’₯ Return values πŸ’₯

  • ENOCMP β€” component does not exist. πŸ’€

🌸 Parameters 🌸

  • name β€” name of component to find index for.

✨ Examples ✨

           int cidx;
           cidx = PAPI_get_component_index("cuda");
           if (cidx==PAPI_OK) {
                      printf("The CUDA component is cidx %d\n",cidx);
                   }

PAPI_get_component_index() returns the component index of the named component. This is useful for finding out if a specified component exists. πŸ”₯

🫢 See also 🫢

  • PAPI_get_event_component

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for PAPI from the source code. (Yes, the author is a bot β€” iconic, honestly. Main character energy. πŸ€–βœ¨)


With love from your Unix bestie πŸ’– β€” this page is from PAPI_get_component_index(3), PAPI source code via Doxygen, version 7.2.0.0, dated Wed Jun 25 2025 19:30:48. Mwah! πŸ’‹