Feature/node description (#325)
Refactor hardware-querying code. Comprises part of the work on issue #318. * Create `src/hardware` path for hardware-querying code. * Create `nest::mc::hw` namespace for hardware-querying code. * Move memory, affinity and power code from util and threading code to the new diretory and namespace. * Add `nest::mc::threading::num_threads` function that attempts to determine the number of threads to use according to an environment variable, or by using the low level hardware querying if no environment variable is set. * Add hardware query for counting the number of available GPUs.
Showing
- miniapp/miniapp.cpp 2 additions, 2 deletionsminiapp/miniapp.cpp
- src/CMakeLists.txt 6 additions, 5 deletionssrc/CMakeLists.txt
- src/hardware/affinity.cpp 10 additions, 5 deletionssrc/hardware/affinity.cpp
- src/hardware/affinity.hpp 6 additions, 3 deletionssrc/hardware/affinity.hpp
- src/hardware/gpu.cpp 23 additions, 0 deletionssrc/hardware/gpu.cpp
- src/hardware/gpu.hpp 11 additions, 0 deletionssrc/hardware/gpu.hpp
- src/hardware/memory.cpp 2 additions, 2 deletionssrc/hardware/memory.cpp
- src/hardware/memory.hpp 2 additions, 2 deletionssrc/hardware/memory.hpp
- src/hardware/power.cpp 2 additions, 2 deletionssrc/hardware/power.cpp
- src/hardware/power.hpp 3 additions, 3 deletionssrc/hardware/power.hpp
- src/profiling/memory_meter.cpp 5 additions, 3 deletionssrc/profiling/memory_meter.cpp
- src/profiling/memory_meter.hpp 0 additions, 5 deletionssrc/profiling/memory_meter.hpp
- src/profiling/power_meter.cpp 5 additions, 4 deletionssrc/profiling/power_meter.cpp
- src/profiling/power_meter.hpp 0 additions, 5 deletionssrc/profiling/power_meter.hpp
- src/threading/cthread.cpp 4 additions, 50 deletionssrc/threading/cthread.cpp
- src/threading/threading.cpp 85 additions, 0 deletionssrc/threading/threading.cpp
- src/threading/threading.hpp 27 additions, 1 deletionsrc/threading/threading.hpp
Please register or sign in to comment