.. _file_job_management_job_scheduler.h: File job_scheduler.h ==================== |exhale_lsh| :ref:`Parent directory ` (``job_management``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS Job scheduler detection and resource management for HPC environments. .. contents:: Contents :local: :backlinks: none Definition (``job_management/job_scheduler.h``) ----------------------------------------------- Detailed Description -------------------- Le Nhan Pham 2025 This header provides comprehensive job scheduler detection and resource management for High Performance Computing (HPC) environments. It automatically detects the active job scheduler, extracts resource allocation information, and provides safe resource usage calculations that respect cluster limits. Schedulers The system supports detection and resource extraction for: - SLURM (Simple Linux Utility for Resource Management) - PBS/Torque (Portable Batch System) - SGE/OGS (Sun Grid Engine / Open Grid Scheduler) - LSF (IBM Load Sharing Facility) - Generic cluster detection for unknown schedulers Management Key features include: - Automatic detection of allocated CPUs and memory - Safe resource limit calculations to prevent oversubscription - Integration with application threading and memory management - Environment variable parsing for all major schedulers - Validation and safety checks for resource requests Integration The job scheduler system integrates with: - Multi-threading systems for safe CPU allocation - Memory management systems for memory limit enforcement - Configuration systems for default resource preferences - Error reporting for resource allocation issues Includes -------- - ``algorithm`` - ``cstdlib`` - ``functional`` - ``string`` Included By ----------- - :ref:`file_extraction_gaussian_extractor.h` - :ref:`file_utilities_command_system.h` Classes ------- - :ref:`exhale_struct_structJobResources` - :ref:`exhale_class_classJobSchedulerDetector` Enums ----- - :ref:`exhale_enum_job__scheduler_8h_1a342cd0e47545da3e679b393fc548c6b1`