java.lang.Object
org.ojalgo.machine.BasicMachine
org.ojalgo.machine.VirtualMachine
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Hardware.Architecturefinal longThe size of one top level (L3 or L2) cache unit in bytes.final intThe total number of processor cores.final intThe number of top level (L3 or L2) cache units.Fields inherited from class org.ojalgo.machine.BasicMachine
memory, threads -
Method Summary
Modifier and TypeMethodDescriptionfinal longcache()The total amount of top level (L3 or L2) cache memory in bytes.voidbooleanintgetAvailableDim1D(long elementSize) intgetAvailableDim2D(long elementSize) longstatic longinthashCode()final booleanfinal booleanfinal booleanlimitBy(double fraction) toString()
-
Field Details
-
architecture
-
cache
public final long cacheThe size of one top level (L3 or L2) cache unit in bytes. -
cores
public final int coresThe total number of processor cores. -
units
public final int unitsThe number of top level (L3 or L2) cache units. If there is a L3 cache this usually corresponds to the number of CPU:s.
-
-
Method Details
-
getMemory
public static long getMemory() -
collectGarbage
public void collectGarbage() -
equals
-
getAvailableDim1D
public int getAvailableDim1D(long elementSize) -
getAvailableDim2D
public int getAvailableDim2D(long elementSize) -
getAvailableMemory
public long getAvailableMemory() -
hashCode
public int hashCode() -
limitBy
- Parameters:
fraction- [0.0, 1.0]- Returns:
- A limited VirtualMachine
-
toString
- Overrides:
toStringin classBasicMachine
-
cache
public final long cache()The total amount of top level (L3 or L2) cache memory in bytes. -
isMultiCore
public final boolean isMultiCore() -
isMultiThread
public final boolean isMultiThread() -
isMultiUnit
public final boolean isMultiUnit()
-