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"; __
function getMPILocalSize
function getMaxThreadCount
function setMPILocalSize
function 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