Class SoCpuDevice
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.devices.SoDevice
-
- com.openinventor.inventor.devices.SoCpuDevice
-
public class SoCpuDevice extends SoDevice
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
,SoGLDevice
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SoCpuDevice.ProcessorArchitectures
This enum contains the list of possible architectures for the CPU.-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SoCpuDevice
findFirstAvailableDevice()
Returns the first available device found in the system.SoCpuDevice.ProcessorArchitectures
getArchitecture()
Returns the architecture of the processor.int
getCacheSize(int cacheLevel)
Returns the size of the cache on this device in bytes.static SoCpuDevice
getDevice()
Calls getDevice((int)0).static SoCpuDevice
getDevice(int index)
Returns theSoCpuDevice
.static int
getDevicesCount()
Returns the total number of cores available in the sytem.int
getSSELevel()
Returns the SSE instruction level available on this device.boolean
hasMMX()
Returns true if MMX instructions are supported on this device.boolean
hasSSE()
Returns if SSE instructions are supported on this device.boolean
isActive()
Returns true if the CPU is active in the system.-
Methods inherited from class com.openinventor.inventor.devices.SoDevice
getDeviceName, getDriverVersion, getLogicalUnits
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Method Detail
-
getDevice
public static SoCpuDevice getDevice()
Calls getDevice((int)0).
-
getSSELevel
public int getSSELevel()
Returns the SSE instruction level available on this device.
-
getDevicesCount
public static int getDevicesCount()
Returns the total number of cores available in the sytem.
-
getCacheSize
public int getCacheSize(int cacheLevel)
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.
-
getDevice
public static SoCpuDevice getDevice(int index)
Returns theSoCpuDevice
.- Parameters:
index
- not used.
-
findFirstAvailableDevice
public static SoCpuDevice findFirstAvailableDevice()
Returns the first available device found in the system.
-
hasSSE
public boolean hasSSE()
Returns if SSE instructions are supported on this device.
-
hasMMX
public boolean hasMMX()
Returns true if MMX instructions are supported on this device.
-
getArchitecture
public SoCpuDevice.ProcessorArchitectures getArchitecture()
Returns the architecture of the processor.
-
isActive
public boolean isActive()
Returns true if the CPU is active in the system.
-
-