I need to know the total number of threads that my application has spawned via OpenMP. Unfortunately, the omp_get_num_threads() function does not w
omp_get_num_threads()
Having in mind you know the exact amount of threads being created, the simplest solution I come up with is keeping your own thread counter.
Be aware I'm completely in the dark about OpenMP as I've never really used it.