Gromacs
2025-dev-20240913-b871546
|
Classes | |
class | MockHardwareTopologyTest |
Mocking test with data collected from a few systems. More... | |
Typedefs | |
using | ProcessorMap = std::map< int, std::array< int, 3 >> |
Type name for processor map. | |
using | HardwareDetectionTestParams = std::tuple< ProcessorMap, std::vector< int >, std::string > |
Test parameter input struct. | |
using | SpecialSystemHardwareParams = std::tuple< int, int, std::string > |
Test parameter struct for special systems. | |
Functions | |
void | checkLogicalProcessor (TestReferenceChecker *checker, const HardwareTopology::LogicalProcessor &cpu) |
Check if fields in a LogicalProcessor struct match. More... | |
void | checkProcessingUnit (TestReferenceChecker *checker, const HardwareTopology::ProcessingUnit &pu) |
Check if fields in a ProcessingUnit struct match. More... | |
void | checkCore (TestReferenceChecker *checker, const HardwareTopology::Core &core) |
Check if fields in a Core struct match. More... | |
void | checkPackage (TestReferenceChecker *checker, const HardwareTopology::Package &package) |
Check if fields in a Package struct match. More... | |
void | checkMap (TestReferenceChecker *checker, const std::pair< int, int > &mapEntry) |
Check if an entry in the osIdToPuId map matches. More... | |
void | checkMachine (TestReferenceChecker *checker, const HardwareTopology::Machine &machine) |
Check if entire machine structure in a hardware topology matches. More... | |
void | checkHardwareTopology (TestReferenceChecker *checker, const HardwareTopology &hwTop) |
Variables | |
const ProcessorMap | logicalProcessorIdMapXeonE52620v4 |
Hardware map for XeonE52620v4. More... | |
const ProcessorMap | logicalProcessorIdMapXeon4116 |
Hardware map for Xeon4116. More... | |
const ProcessorMap | logicalProcessorIdMapCore12900K |
Hardware map for Core12900K. More... | |
const std::vector< int > | emptyCPUVector = {} |
Empty allowed CPU vector. | |
const std::vector< int > | slurm1of4XeonE52620v4 = { 0, 1, 2, 3, 16, 17, 18, 19 } |
Slurm slot 1 of 4 XeonE52620v4. | |
const std::vector< int > | slurm2of4XeonE52620v4 = { 4, 5, 6, 7, 20, 21, 22, 23 } |
Slurm slot 2 of 4 XeonE52620v4. | |
const std::vector< int > | slurm3of4XeonE52620v4 = { 8, 9, 10, 11, 24, 25, 26, 27 } |
Slurm slot 3 of 4 XeonE52620v4. | |
const std::vector< int > | slurm4of4XeonE52620v4 = { 12, 13, 14, 15, 28, 29, 30, 31 } |
Slurm slot 4 of 4 XeonE52620v4. | |
const std::vector< int > | slurm1of4Xeon4116 = { 0, 1, 2, 3, 4, 5, 24, 25, 26, 27, 28, 29 } |
Slurm slot 1 of 4 Xeon4116. | |
const std::vector< int > | slurm2of4Xeon4116 = { 6, 7, 8, 9, 10, 11, 30, 31, 32, 33, 34, 35 } |
Slurm slot 2 of 4 Xeon4116. | |
const std::vector< int > | slurm3of4Xeon4116 = { 12, 13, 14, 15, 16, 17, 36, 37, 38, 39, 40, 41 } |
Slurm slot 3 of 4 Xeon4116. | |
const std::vector< int > | slurm4of4Xeon4116 = { 18, 19, 20, 21, 22, 23, 42, 43, 44, 45, 46, 47 } |
Slurm slot 4 of 4 Xeon4116. | |
void gmx::test::anonymous_namespace{mockhardwaretopology.cpp}::checkCore | ( | TestReferenceChecker * | checker, |
const HardwareTopology::Core & | core | ||
) |
Check if fields in a Core struct match.
checker | Initialized checker |
core | Initialized Core structure in hardwaretopology. |
void gmx::test::anonymous_namespace{mockhardwaretopology.cpp}::checkLogicalProcessor | ( | TestReferenceChecker * | checker, |
const HardwareTopology::LogicalProcessor & | cpu | ||
) |
Check if fields in a LogicalProcessor struct match.
checker | Initialized checker |
cpu | Initialized LogicalProcessor structure in hardwaretopology. |
void gmx::test::anonymous_namespace{mockhardwaretopology.cpp}::checkMachine | ( | TestReferenceChecker * | checker, |
const HardwareTopology::Machine & | machine | ||
) |
Check if entire machine structure in a hardware topology matches.
checker | Initialized checker |
machine | Initialized Machine structure from hardware topology |
void gmx::test::anonymous_namespace{mockhardwaretopology.cpp}::checkMap | ( | TestReferenceChecker * | checker, |
const std::pair< int, int > & | mapEntry | ||
) |
Check if an entry in the osIdToPuId map matches.
checker | Initialized checker |
mapEntry | Reference to single entry in osId to puId map |
void gmx::test::anonymous_namespace{mockhardwaretopology.cpp}::checkPackage | ( | TestReferenceChecker * | checker, |
const HardwareTopology::Package & | package | ||
) |
Check if fields in a Package struct match.
checker | Initialized checker |
package | Initialized Package structure in hardwaretopology. |
void gmx::test::anonymous_namespace{mockhardwaretopology.cpp}::checkProcessingUnit | ( | TestReferenceChecker * | checker, |
const HardwareTopology::ProcessingUnit & | pu | ||
) |
Check if fields in a ProcessingUnit struct match.
checker | Initialized checker |
pu | Initialized processing unit structure in hardwaretopology. |
const ProcessorMap gmx::test::anonymous_namespace{mockhardwaretopology.cpp}::logicalProcessorIdMapCore12900K |
Hardware map for Core12900K.
const ProcessorMap gmx::test::anonymous_namespace{mockhardwaretopology.cpp}::logicalProcessorIdMapXeon4116 |
Hardware map for Xeon4116.
const ProcessorMap gmx::test::anonymous_namespace{mockhardwaretopology.cpp}::logicalProcessorIdMapXeonE52620v4 |
Hardware map for XeonE52620v4.