OpenSWMM Engine  6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
SWMM_ThreadInfo Struct Reference

#include <openswmm_engine.h>

Collaboration diagram for SWMM_ThreadInfo:

Public Attributes

int logical_cpus
 
int omp_max_threads
 
int omp_available
 
int perf_cores
 
int kokkos_omp_threads
 

Detailed Description

Hardware / OpenMP thread limits as seen by the engine process. Lets a host show the user what [OPTIONS] THREADS can usefully be set to and why the effective count may differ from the request.

Member Data Documentation

◆ kokkos_omp_threads

int SWMM_ThreadInfo::kokkos_omp_threads

Threads the Kokkos OpenMP 2D backend initialised with in this process; 0 = not initialised.

◆ logical_cpus

int SWMM_ThreadInfo::logical_cpus

Logical processors (SMT included); 0 if unknown.

◆ omp_available

int SWMM_ThreadInfo::omp_available

1 if the engine was built with OpenMP.

◆ omp_max_threads

int SWMM_ThreadInfo::omp_max_threads

omp_get_max_threads() in this process. Lower than logical_cpus when OMP_NUM_THREADS / OMP_THREAD_LIMIT / CPU affinity limit the process. 1 without OpenMP.

◆ perf_cores

int SWMM_ThreadInfo::perf_cores

macOS: logical CPUs on the performance cluster; 0 elsewhere / unknown.


The documentation for this struct was generated from the following file: