|
HLIBpro
1.2
|
stores information about processor-number etc.
#include <TMachInfo.hh>
Public Member Functions | |
| TMachInfo () | |
| construct machine info object with one processor and thread | |
| uint | pid () const |
| return local processor id | |
| bool | is_parallel () const |
| return true, if program runs on more than one processor | |
| uint | nprocs () const |
| return number of processors in parallel machine | |
| uint | nthreads () const |
| return number of threads in local processor | |
| void | set_pid (const uint n) |
| set local processor id | |
| void | set_nprocs (const uint n) |
| set number of processors in parallel machine | |
| void | set_nthreads (const uint n) |
| set number of threads on local processor | |
| bool | on_proc (const uint p) const |
| return true, if local processor is equal to given processor | |
| bool | on_proc (const TProcSet &ps) const |
| return true, if local processor is part of given processor set | |
Protected Attributes | |
| uint | _pid |
| number of the local processor | |
| uint | _nprocs |
| number of processors in parallel machine | |
| uint | _nthreads |
| number of threads on local processor | |
1.8.1.2