forked from Eyescale/CMake
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFindSLURM.cmake
More file actions
19 lines (17 loc) · 823 Bytes
/
FindSLURM.cmake
File metadata and controls
19 lines (17 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
find_program(SLURM_SBATCH_COMMAND sbatch DOC "Path to the SLURM sbatch executable")
find_program(SLURM_SRUN_COMMAND srun DOC "Path to the SLURM srun executable")
find_program(SLURM_SACCTMGR_COMMAND sacctmgr DOC "Path to the SLURM sacctmgr executable")
mark_as_advanced(SLURM_SRUN_COMMAND SLURM_SBATCH_COMMAND SLURM_SACCTMGR_COMMAND)
if(SLURM_SRUN_COMMAND AND SLURM_SBATCH_COMMAND)
set(SLURM_FOUND true)
if(NOT SLURM_FIND_QUIETLY)
message (STATUS "Found SLURM. SLURM_SBATCH_COMMAND: ${SLURM_SBATCH_COMMAND}, SLURM_SRUN_COMMAND: ${SLURM_SRUN_COMMAND}, SLURM_SACCTMGR_COMMAND: ${SLURM_SACCTMGR_COMMAND}")
endif()
else()
set(SLURM_FOUND false )
if(SLURM_FIND_REQUIRED)
message(FATAL_ERROR "Could not find SLURM")
elseif(NOT SLURM_FIND_QUIETLY)
message(STATUS "Could not find SLURM")
endif()
endif()