SoCpuDevice Class Reference
[CPU device]

VSG extension CPU device management class More...

#include <Inventor/devices/SoCpuDevice.h>

Inheritance diagram for SoCpuDevice:
SoDevice

List of all members.

Public Types

enum  ProcessorArchitecture {
  X86_64,
  X86_32,
  IA64,
  PPC_32,
  PPC_64,
  UNKNOWN
}

Public Member Functions

virtual SbString getDeviceName () const
virtual unsigned long long getTotalMemory () const
virtual unsigned long long getAvailableMemory () const
virtual SbString getDriverVersion () const
ProcessorArchitecture getArchitecture () const
bool isActive () const
bool hasMMX () const
bool hasSSE () const
int getSSELevel () const
virtual unsigned int getLogicalUnits () const
unsigned int getCacheSize (int cacheLevel) const

Static Public Member Functions

static SoCpuDevicegetDevice (int index=0)
static unsigned int getDevicesCount ()
static SoCpuDevicefindFirstAvailableDevice ()
static void initClass ()
static void exitClass ()

Friends

class SoDevice
std::ostream & operator<< (std::ostream &os, const SoCpuDevice &dev)

Detailed Description

VSG extension CPU device management class

This class provides functions to manage or to get data for each CPU device available in the system.

Please see SoDevice for general information about the device classes.

SEE ALSO

SoCpuContext, SoCpuBufferObject, SoDevice, SoCudaDevice, SoGLDevice, SoOpenCLDevice

See related examples:

DevicesProperties


Member Enumeration Documentation

This enum contains the list of possible architectures for the CPU.

Enumerator:
X86_64 
X86_32 
IA64 
PPC_32 
PPC_64 
UNKNOWN 

Member Function Documentation

static void SoCpuDevice::exitClass (  )  [static]

This function frees the allocated memory.

Reimplemented from SoDevice.

static SoCpuDevice* SoCpuDevice::findFirstAvailableDevice (  )  [static]

Returns the first available device found in the system.

SoCpuDevice::ProcessorArchitecture SoCpuDevice::getArchitecture (  )  const [inline]

Returns the architecture of the processor.

virtual unsigned long long SoCpuDevice::getAvailableMemory (  )  const [virtual]

Returns the current available memory of this device in bytes.

Implements SoDevice.

unsigned int SoCpuDevice::getCacheSize ( int  cacheLevel  )  const

Returns the size of the cache on this device in bytes.

Note: On Microsoft Windows platforms this function only returns a valid number on Windows XP SP3 and newer.

Parameters:
cacheLevel The cache level can be 1, 2, or 3.
static SoCpuDevice* SoCpuDevice::getDevice ( int  index = 0  )  [static]

Returns the SoCpuDevice.

Parameters:
index not used.

Reimplemented from SoDevice.

virtual SbString SoCpuDevice::getDeviceName (  )  const [virtual]

Returns the device name.

Returns:
The device name.

Implements SoDevice.

static unsigned int SoCpuDevice::getDevicesCount (  )  [static]

Returns the total number of cores available in the sytem.

Reimplemented from SoDevice.

virtual SbString SoCpuDevice::getDriverVersion (  )  const [inline, virtual]

Returns the driver version of this device.


Always returns 0.0 on CPU device.

Implements SoDevice.

virtual unsigned int SoCpuDevice::getLogicalUnits (  )  const [virtual]

Returns the number of cores available on this device.

Note: On Microsoft Windows platforms this function only returns a valid number on Windows XP SP3 and newer.

Implements SoDevice.

int SoCpuDevice::getSSELevel (  )  const [inline]

Returns the SSE instruction level available on this device.

unsigned long long SoCpuDevice::getTotalMemory (  )  const [inline, virtual]

Returns the total memory of this device in bytes.

Implements SoDevice.

bool SoCpuDevice::hasMMX (  )  const [inline]

Returns true if MMX instructions are supported on this device.

bool SoCpuDevice::hasSSE (  )  const [inline]

Returns if SSE instructions are supported on this device.

static void SoCpuDevice::initClass (  )  [static]

This function detects the CPU available in the system.

bool SoCpuDevice::isActive (  )  const [inline]

Returns true if the CPU is active in the system.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const SoCpuDevice dev 
) [friend]

Prints information about the device.

friend class SoDevice [friend]

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

Open Inventor Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/