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

Process-wide hardware / OpenMP thread capability query. More...

#include "ThreadInfo.hpp"
#include <atomic>
#include <cstdio>
#include <cstdlib>
#include <thread>
Include dependency graph for ThreadInfo.cpp:

Namespaces

namespace  openswmm
 
namespace  openswmm::threadinfo
 

Functions

int openswmm::threadinfo::logicalCpus ()
 
int openswmm::threadinfo::ompMaxThreads ()
 
int openswmm::threadinfo::ompAvailable ()
 1 when built with SWMM_USE_OPENMP, else 0.
 
int openswmm::threadinfo::perfCores ()
 
int openswmm::threadinfo::kokkosOmpThreads ()
 
void openswmm::threadinfo::setKokkosOmpThreads (int n)
 Recorded by the engine when it hands a thread count to the Kokkos plugin.
 
int openswmm::threadinfo::hostReservedThreads ()
 
bool openswmm::threadinfo::isOversubscribed (int threads)
 
int openswmm::threadinfo::resolveRequested (int requested, const char *what, std::vector< std::string > *warnings)
 Resolve a [OPTIONS] THREADS request into a thread count.
 
int openswmm::threadinfo::dwThreads (int requested, int n_conduits, std::vector< std::string > *warnings)
 Dynamic-wave Picard team size for a THREADS request.
 
int openswmm::threadinfo::twoDThreads (int requested, int n_triangles, std::vector< std::string > *warnings)
 2D CPU-marcher team size for a THREADS request.
 

Detailed Description

Process-wide hardware / OpenMP thread capability query.

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
License\n Apache-2.0