public class SoCpuDevice extends SoDevice
Please see SoDevice
for general information about the device classes.
See also:
SoCpuContext
, SoCpuBufferObject
, SoDevice
, SoCudaDevice, SoGLDevice
, SoOpenCLDevice
Modifier and Type | Class and Description |
---|---|
static class |
SoCpuDevice.ProcessorArchitectures
This enum contains the list of possible architectures for the CPU.
|
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
static int |
IA64
Deprecated.
Use
SoCpuDevice.ProcessorArchitectures.IA64 instead. |
static int |
PPC_32
Deprecated.
Use
SoCpuDevice.ProcessorArchitectures.PPC_32 instead. |
static int |
PPC_64
Deprecated.
Use
SoCpuDevice.ProcessorArchitectures.PPC_64 instead. |
static int |
UNKNOWN
Deprecated.
Use
SoCpuDevice.ProcessorArchitectures.UNKNOWN instead. |
static int |
X86_32
Deprecated.
Use
SoCpuDevice.ProcessorArchitectures.X86_32 instead. |
static int |
X86_64
Deprecated.
Use
SoCpuDevice.ProcessorArchitectures.X86_64 instead. |
VERBOSE_LEVEL, ZeroHandle
Modifier and Type | Method and 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 the
SoCpuDevice . |
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.
|
getDeviceName, getDriverVersion, getLogicalUnits
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
@Deprecated public static final int X86_64
SoCpuDevice.ProcessorArchitectures.X86_64
instead.@Deprecated public static final int X86_32
SoCpuDevice.ProcessorArchitectures.X86_32
instead.@Deprecated public static final int IA64
SoCpuDevice.ProcessorArchitectures.IA64
instead.@Deprecated public static final int PPC_32
SoCpuDevice.ProcessorArchitectures.PPC_32
instead.@Deprecated public static final int PPC_64
SoCpuDevice.ProcessorArchitectures.PPC_64
instead.@Deprecated public static final int UNKNOWN
SoCpuDevice.ProcessorArchitectures.UNKNOWN
instead.public static SoCpuDevice getDevice()
public int getSSELevel()
public static int getDevicesCount()
public int getCacheSize(int cacheLevel)
cacheLevel
- The cache level can be 1, 2, or 3.public static SoCpuDevice getDevice(int index)
SoCpuDevice
.
index
- not used.public static SoCpuDevice findFirstAvailableDevice()
public boolean hasSSE()
public boolean hasMMX()
public SoCpuDevice.ProcessorArchitectures getArchitecture()
public boolean isActive()
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com