Skip to content

Class TempLat::ThreadSettings

ClassList > TempLat > ThreadSettings

A class which does bookkeeping, number of threads allowed by hardware, number of threads allowed by user, etc. More...

  • #include <threadsettings.h>

Public Static Functions

Type Name
ThreadSettings & getInstance ()
Yes, a global variable. Inline, so it remains header only. Constructor is private. All you can do with this instance is pass it to a stream: std::cout << ThreadSettings::getInstance() << "\n"; __
device::Idx getMPILocalSize ()
device::Idx getMaxThreadCount ()
void setMPILocalSize (device::Idx newSize)
void setMPIThreadsNotOK ()

Detailed Description

Unit test: ctest -R test-threadsettings

Public Static Functions Documentation

function getInstance

Yes, a global variable. Inline, so it remains header only. Constructor is private. All you can do with this instance is pass it to a stream: std::cout << ThreadSettings::getInstance() << "\n"; __

static inline ThreadSettings & TempLat::ThreadSettings::getInstance () 


function getMPILocalSize

static inline device::Idx TempLat::ThreadSettings::getMPILocalSize () 

function getMaxThreadCount

static inline device::Idx TempLat::ThreadSettings::getMaxThreadCount () 

function setMPILocalSize

static inline void TempLat::ThreadSettings::setMPILocalSize (
    device::Idx newSize
) 

function setMPIThreadsNotOK

static inline void TempLat::ThreadSettings::setMPIThreadsNotOK () 

Friends Documentation

friend operator<<

inline std::ostream & TempLat::ThreadSettings::operator<< (
    std::ostream & stream,
    const ThreadSettings & fts
) 


The documentation for this class was generated from the following file cosmolatticeweb/tmp/code_source/templat/include/TempLat/parallel/threadsettings.h