public abstract class CommonMachine extends BasicMachine
Hardware
and VirtualMachine
.Modifier and Type | Field and Description |
---|---|
String |
architecture |
long |
cache
The size of one top level (L3 or L2) cache unit in bytes.
|
int |
cores
The total number of processor cores.
|
int |
units
The number of top level (L3 or L2) cache units.
|
memory, threads
Modifier | Constructor and Description |
---|---|
protected |
CommonMachine(Hardware hardware,
Runtime runtime) |
protected |
CommonMachine(String architecture,
BasicMachine[] levels)
new MemoryThreads[] { SYSTEM, L3, L2, L1 } or
new MemoryThreads[] { SYSTEM, L2, L1 } or in worst case
new MemoryThreads[] { SYSTEM, L1 } |
Modifier and Type | Method and Description |
---|---|
IntCount |
countCores() |
IntCount |
countThreads() |
IntCount |
countUnits() |
boolean |
equals(Object obj) |
long |
getCacheElements(long elementSize) |
long |
getMemoryElements(long elementSize) |
int |
hashCode() |
boolean |
isMultiCore() |
boolean |
isMultiThread() |
boolean |
isMultiUnit() |
toString
public final String architecture
public final long cache
public final int cores
public final int units
protected CommonMachine(String architecture, BasicMachine[] levels)
new MemoryThreads[] { SYSTEM, L3, L2, L1 }
or
new MemoryThreads[] { SYSTEM, L2, L1 }
or in worst case
new MemoryThreads[] { SYSTEM, L1 }
public final IntCount countCores()
public final IntCount countThreads()
public final IntCount countUnits()
public boolean equals(Object obj)
equals
in class BasicMachine
public final long getCacheElements(long elementSize)
public final long getMemoryElements(long elementSize)
public int hashCode()
hashCode
in class BasicMachine
public final boolean isMultiCore()
public final boolean isMultiThread()
public final boolean isMultiUnit()
Copyright © 2022 Optimatika. All rights reserved.