Module ojalgo

Class CommonMachine

    • Field Detail

      • cache

        public final long cache
        The size of one top level (L3 or L2) cache unit in bytes.
      • cores

        public final int cores
        The total number of processor cores.
      • units

        public final int units
        The number of top level (L3 or L2) cache units. If there is a L3 cache this usually corresponds to the number of CPU:s.
    • Constructor Detail

      • CommonMachine

        CommonMachine​(Hardware hardware,
                      java.lang.Runtime runtime)
      • CommonMachine

        CommonMachine​(Hardware.Architecture arch,
                      BasicMachine[] levels)
        new MemoryThreads[] { SYSTEM, L3, L2, L1 } or new MemoryThreads[] { SYSTEM, L2, L1 } or in worst case new MemoryThreads[] { SYSTEM, L1 }
      • CommonMachine

        CommonMachine​(long memoryBytes,
                      int nbThreads,
                      Hardware.Architecture arch,
                      long cacheBytes,
                      int nbCores,
                      int nbUnits)
      • CommonMachine

        CommonMachine​(VirtualMachine base,
                      int modUnits,
                      int modCores,
                      int modThreads)
    • Method Detail

      • elements

        static long elements​(long availableMemory,
                             long elementSize)
      • cache

        public final long cache()
        The total amount of top level (L3 or L2) cache memory in bytes.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class BasicMachine
      • isMultiCore

        public final boolean isMultiCore()
      • isMultiThread

        public final boolean isMultiThread()
      • isMultiUnit

        public final boolean isMultiUnit()