Optimized Belief Propagation (CPU and GPU)
CPUThreadsPinnedToSocket Class Reference

Class to adjust and retrieve settings corresponding to CPU threads pinned to socket. More...

#include <CPUThreadsPinnedToSocket.h>

Public Member Functions

void operator() (bool cpu_threads_pinned) const
 Adjust setting to specify that CPU threads to be pinned to socket or not. If true, set CPU threads to be pinned to socket via OMP_PLACES and OMP_PROC_BIND envionmental variable settings. If false, set OMP_PLACES and OMP_PROC_BIND environment variables to be blank. Currently commented out since it doesn't seem to have any effect. More...
 
RunData SettingsAsRunData () const
 Retrieve environment variable values corresponding to CPU threads being pinned to socket and return as RunData object. More...
 

Detailed Description

Class to adjust and retrieve settings corresponding to CPU threads pinned to socket.

Definition at line 35 of file CPUThreadsPinnedToSocket.h.

Member Function Documentation

◆ operator()()

void CPUThreadsPinnedToSocket::operator() ( bool  cpu_threads_pinned) const
inline

Adjust setting to specify that CPU threads to be pinned to socket or not. If true, set CPU threads to be pinned to socket via OMP_PLACES and OMP_PROC_BIND envionmental variable settings. If false, set OMP_PLACES and OMP_PROC_BIND environment variables to be blank. Currently commented out since it doesn't seem to have any effect.

Parameters
cpu_threads_pinned

Definition at line 45 of file CPUThreadsPinnedToSocket.h.

◆ SettingsAsRunData()

RunData CPUThreadsPinnedToSocket::SettingsAsRunData ( ) const
inline

Retrieve environment variable values corresponding to CPU threads being pinned to socket and return as RunData object.

Returns
RunData object with environment variables settings corresponding to CPU threads being pinned to socket

Definition at line 75 of file CPUThreadsPinnedToSocket.h.

Here is the call graph for this function:

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