![]() |
|
|||
File indexing completed on 2025-06-20 08:46:38
0001 /* slurm/slurm_version.h. Generated from slurm_version.h.in by configure. */ 0002 /*****************************************************************************\ 0003 * slurm_version.h - Slurm version info 0004 ***************************************************************************** 0005 * Copyright (C) 2021 SchedMD LLC. 0006 * Written by Tim Wickberg <tim@schedmd.com> 0007 * 0008 * This file is part of Slurm, a resource management program. 0009 * For details, see <https://slurm.schedmd.com/>. 0010 * Please also read the included file: DISCLAIMER. 0011 * 0012 * Slurm is free software; you can redistribute it and/or modify it under 0013 * the terms of the GNU General Public License as published by the Free 0014 * Software Foundation; either version 2 of the License, or (at your option) 0015 * any later version. 0016 * 0017 * In addition, as a special exception, the copyright holders give permission 0018 * to link the code of portions of this program with the OpenSSL library under 0019 * certain conditions as described in each individual source file, and 0020 * distribute linked combinations including the two. You must obey the GNU 0021 * General Public License in all respects for all of the code used other than 0022 * OpenSSL. If you modify file(s) with this exception, you may extend this 0023 * exception to your version of the file(s), but you are not obligated to do 0024 * so. If you do not wish to do so, delete this exception statement from your 0025 * version. If you delete this exception statement from all source files in 0026 * the program, then also delete it here. 0027 * 0028 * Slurm is distributed in the hope that it will be useful, but WITHOUT ANY 0029 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 0030 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 0031 * details. 0032 * 0033 * You should have received a copy of the GNU General Public License along 0034 * with Slurm; if not, write to the Free Software Foundation, Inc., 0035 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 0036 \*****************************************************************************/ 0037 0038 #ifndef _SLURM_VERSION_H_ 0039 #define _SLURM_VERSION_H_ 0040 0041 #define SLURM_VERSION_NUMBER 0x170b01 0042 0043 /* 0044 * Define Slurm version number. 0045 * High-order byte is major version. 0046 * Middle byte is minor version. 0047 * Low-order byte is micro version 0048 * (Excludes "-pre#" component of micro version used in pre-releases.) 0049 * 0050 * Use SLURM_VERSION_NUM macro to compare versions, for example 0051 * #if SLURM_VERSION_NUMBER > SLURM_VERSION_NUM(2,1,0) 0052 */ 0053 #define SLURM_VERSION_NUM(a,b,c) (((a) << 16) + ((b) << 8) + (c)) 0054 #define SLURM_VERSION_MAJOR(a) (((a) >> 16) & 0xff) 0055 #define SLURM_VERSION_MINOR(a) (((a) >> 8) & 0xff) 0056 #define SLURM_VERSION_MICRO(a) ((a) & 0xff) 0057 0058 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |