This file is indexed.

/usr/lib/perl5/Slurm/Constant.pm is in libslurm-perl 2.6.5-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
package Slurm::Constant;
use strict;
use warnings;
use Carp;

my %const;
my $got = 0;

sub _get_constants {
    seek(DATA, 0, 0);
    local $/=''; # paragraph mode
    local $_;
    while(<DATA>) {
	next unless /^=item\s+\*\s+(\S+)\s+(\S+)\s*$/;
	my ($name, $val) = ($1,$2);
	if ($val =~ /^0x/) {
	    $val = hex($val);
	} else {
	    $val = int($val);
	}
	$const{$name} = sub () { $val };
    }
    $got = 1;
}

sub import {
    my $pkg = shift;
    my $callpkg = caller(0);
    croak "Please use `use Slurm qw(:constant)' instead of `use Slurm::Constant'."
	unless $callpkg eq "Slurm";
    _get_constants() unless $got;
    {
	no strict "refs";
	my ($sym, $sub);
	while (($sym, $sub) = each(%const)) {
	    *{$callpkg . "::$sym"} = $sub;
	}
    }
}

sub import2 {
    my $pkg = shift;
    my $callpkg = caller(0);
    croak "Please use `use Slurm qw(:constant)' instead of `use Slurm::Constant'."
	unless $callpkg eq "Slurm";
    my $main = caller(1);
    _get_constants() unless $got;
    {
	no strict "refs";
	my ($sym, $sub);
	while (($sym, $sub) = each(%const)) {
	    *{$main . "::$sym"} = $sub;
	}
    }
}

1;

__DATA__

=head1 NAME

Slurm::Constant - Constants for use with Slurm

=head1 SYNOPSIS

 use Slurm qw(:constant);

 if ($rc != SLURM_SUCCESS {
         print STDERR "action failed!\n";
 }

=head1 DESCRIPTION

This package export constants for use with Slurm. This includes enumerations and defined macros. The constants will be exported to package Slurm and the package which "use Slurm qw(:constant);".

=head1 EXPORTED CONSTANTS

=head2 DEFINED MACROS

=head3 Misc values

=over 2

=item * TRUE               1

=item * FALSE              0

=item * INFINITE           0xffffffff

=item * NO_VAL             0xfffffffe

=item * MAX_TASKS_PER_NODE 128

=item * SLURM_BATCH_SCRIPT 0xfffffffe

=back

=head3 Job state flags

=over 2

=item * JOB_STATE_BASE   0x00ff

=item * JOB_STATE_FLAGS  0xff00

=item * JOB_COMPLETING   0x8000

=item * JOB_CONFIGURING  0x4000

=item * JOB_RESIZING     0x2000

=item * READY_JOB_FATAL  -2

=item * READY_JOB_ERROR  -1

=item * READY_NODE_STATE 0x01

=item * READY_JOB_STATE  0x02

=back

=head3 Job mail notification

=over 2

=item * MAIL_JOB_BEGIN    0x0001

=item * MAIL_JOB_END      0x0002

=item * MAIL_JOB_FAIL     0x0004

=item * MAIL_JOB_REQUEUE  0x0008

=back

=head3 Offset for job's nice value

=over 2

=item * NICE_OFFSET             10000

=back

=head3 Partition state flags

=over 2

=item * PARTITION_SUBMIT        0x01

=item * PARTITION_SCHED         0x02

=item * PARTITION_DOWN          0x01

=item * PARTITION_UP            0x03

=item * PARTITION_DRAIN         0x02

=item * PARTITION_INACTIVE      0x00

=back

=head3 Open stdout/stderr mode

=over 2

=item * OPEN_MODE_APPEND        1

=item * OPEN_MODE_TRUNCATE      2

=back

=head3 Node state flags

=over 2

=item * NODE_STATE_BASE       0x00ff

=item * NODE_STATE_FLAGS      0xff00

=item * NODE_RESUME           0x0100

=item * NODE_STATE_DRAIN      0x0200

=item * NODE_STATE_COMPLETING 0x0400

=item * NODE_STATE_NO_RESPOND 0x0800

=item * NODE_STATE_POWER_SAVE 0x1000

=item * NODE_STATE_FAIL       0x2000

=item * NODE_STATE_POWER_UP   0x4000

=item * NODE_STATE_MAINT      0x8000

=back

=head3 Size of the credential signature

=over 2

=item * SLURM_SSL_SIGNATURE_LENGTH 128

=back

=head3 show_flags of slurm_get_/slurm_load_ function calls

=over 2

=item * SHOW_ALL        0x0001

=item * SHOW_DETAIL     0x0002

=back

=head3 Consumerable resources parameters

=over 2

=item * CR_CPU                     0x0001

=item * CR_SOCKET                  0x0002

=item * CR_CORE                    0x0004

=item * CR_MEMORY                  0x0010

=item * CR_ONE_TASK_PER_CORE       0x0100

=item * CR_CORE_DEFAULT_DIST_BLOCK 0x1000

=item * MEM_PER_CPU                0x80000000

=item * SHARED_FORCE               0x8000

=back

=head3 Private data values

=over 2

=item * PRIVATE_DATA_JOBS         0x0001

=item * PRIVATE_DATA_NODES        0x0002

=item * PRIVATE_DATA_PARTITIONS   0x0004

=item * PRIVATE_DATA_USAGE        0x0008

=item * PRIVATE_DATA_USERS        0x0010

=item * PRIVATE_DATA_ACCOUNTS     0x0020

=item * PRIVATE_DATA_RESERVATIONS 0x0040

=back

=head3 Priority reset period

=over 2

=item * PRIORITY_RESET_NONE       0x0000        

=item * PRIORITY_RESET_NOW        0x0001        

=item * PRIORITY_RESET_DAILY      0x0002        

=item * PRIORITY_RESET_WEEKLY     0x0003        

=item * PRIORITY_RESET_MONTHLY    0x0004        

=item * PRIORITY_RESET_QUARTERLY  0x0005        

=item * PRIORITY_RESET_YEARLY     0x0006        

=back

=head3 Process priority propagation

=over 2

=item * PROP_PRIO_OFF             0x0000        

=item * PROP_PRIO_ON              0x0001        

=item * PROP_PRIO_NICER           0x0002        

=back

=head3 Partition state information

=over 2

=item * PART_FLAG_DEFAULT         0x0001

=item * PART_FLAG_HIDDEN          0x0002

=item * PART_FLAG_NO_ROOT         0x0004

=item * PART_FLAG_ROOT_ONLY       0x0008

=item * PART_FLAG_DEFAULT_CLR     0x0100

=item * PART_FLAG_HIDDEN_CLR      0x0200

=item * PART_FLAG_NO_ROOT_CLR     0x0400

=item * PART_FLAG_ROOT_ONLY_CLR   0x0800

=back

=head3 Reservation flags

=over 2

=item * RESERVE_FLAG_MAINT        0x0001

=item * RESERVE_FLAG_NO_MAINT     0x0002

=item * RESERVE_FLAG_DAILY        0x0004

=item * RESERVE_FLAG_NO_DAILY     0x0008

=item * RESERVE_FLAG_WEEKLY       0x0010

=item * RESERVE_FLAG_NO_WEEKLY    0x0020

=item * RESERVE_FLAG_IGN_JOBS     0x0040

=item * RESERVE_FLAG_NO_IGN_JOB   0x0080

=item * RESERVE_FLAG_OVERLAP      0x4000

=item * RESERVE_FLAG_SPEC_NODES   0x8000

=back

=head3 Log debug flags

=over 2

=item * DEBUG_FLAG_SELECT_TYPE     0x00000001

=item * DEBUG_FLAG_STEPS           0x00000002

=item * DEBUG_FLAG_TRIGGERS        0x00000004

=item * DEBUG_FLAG_CPU_BIND        0x00000008

=item * DEBUG_FLAG_WIKI            0x00000010

=item * DEBUG_FLAG_NO_CONF_HASH    0x00000020

=item * DEBUG_FLAG_GRES            0x00000040

=item * DEBUG_FLAG_BG_PICK         0x00000080

=item * DEBUG_FLAG_BG_WIRES        0x00000100

=item * DEBUG_FLAG_BG_ALGO         0x00000200

=item * DEBUG_FLAG_BG_ALGO_DEEP    0x00000400

=item * DEBUG_FLAG_PRIO            0x00000800

=item * DEBUG_FLAG_BACKFILL        0x00001000

=item * DEBUG_FLAG_GANG            0x00002000

=item * DEBUG_FLAG_RESERVATION     0x00004000

=back

=head3 Group cache

=over 2

=item * GROUP_FORCE                0x8000

=item * GROUP_CACHE                0x4000

=item * GROUP_TIME_MASK            0x0fff

=back

=head3 Preempt mode

=over 2

=item * PREEMPT_MODE_OFF         0x0000

=item * PREEMPT_MODE_SUSPEND     0x0001

=item * PREEMPT_MODE_REQUEUE     0x0002

=item * PREEMPT_MODE_CHECKPOINT  0x0004

=item * PREEMPT_MODE_CANCEL      0x0008

=item * PREEMPT_MODE_GANG        0x8000

=back

=head3 Trigger type

=over 2

=item * TRIGGER_RES_TYPE_JOB   	     0x0001

=item * TRIGGER_RES_TYPE_NODE  	     0x0002

=item * TRIGGER_RES_TYPE_SLURMCTLD   0x0003

=item * TRIGGER_RES_TYPE_SLURMDBD    0x0004

=item * TRIGGER_RES_TYPE_DATABASE    0x0005

=item * TRIGGER_TYPE_UP                 0x00000001

=item * TRIGGER_TYPE_DOWN               0x00000002

=item * TRIGGER_TYPE_FAIL               0x00000004

=item * TRIGGER_TYPE_TIME               0x00000008

=item * TRIGGER_TYPE_FINI               0x00000010

=item * TRIGGER_TYPE_RECONFIG           0x00000020

=item * TRIGGER_TYPE_BLOCK_ERR          0x00000040

=item * TRIGGER_TYPE_IDLE               0x00000080

=item * TRIGGER_TYPE_DRAINED            0x00000100

=item * TRIGGER_TYPE_PRI_CTLD_FAIL      0x00000200

=item * TRIGGER_TYPE_PRI_CTLD_RES_OP    0x00000400

=item * TRIGGER_TYPE_PRI_CTLD_RES_CTRL  0x00000800

=item * TRIGGER_TYPE_PRI_CTLD_ACCT_FULL 0x00001000

=item * TRIGGER_TYPE_BU_CTLD_FAIL       0x00002000

=item * TRIGGER_TYPE_BU_CTLD_RES_OP     0x00004000

=item * TRIGGER_TYPE_BU_CTLD_AS_CTRL    0x00008000

=item * TRIGGER_TYPE_PRI_DBD_FAIL       0x00010000

=item * TRIGGER_TYPE_PRI_DBD_RES_OP     0x00020000

=item * TRIGGER_TYPE_PRI_DB_FAIL        0x00040000

=item * TRIGGER_TYPE_PRI_DB_RES_OP      0x00080000

=back


=head2 Enumerations

=head3 Job states

=over 2

=item * JOB_PENDING        0        

=item * JOB_RUNNING        1        

=item * JOB_SUSPENDED      2        

=item * JOB_COMPLETE       3        

=item * JOB_CANCELLED      4        

=item * JOB_FAILED         5        

=item * JOB_TIMEOUT        6        

=item * JOB_NODE_FAIL      7        

=item * JOB_END            8        

=back

=head3 Job state reason

=over 2

=item * WAIT_NO_REASON               0        

=item * WAIT_PRIORITY                1        

=item * WAIT_DEPENDENCY              2

=item * WAIT_RESOURCES               3        

=item * WAIT_PART_NODE_LIMIT         4

=item * WAIT_PART_TIME_LIMIT         5

=item * WAIT_PART_DOWN               6

=item * WAIT_PART_INACTIVE           7

=item * WAIT_HELD                    8

=item * WAIT_TIME                    9

=item * WAIT_LICENSES                10

=item * WAIT_ASSOC_JOB_LIMIT         11

=item * WAIT_ASSOC_RESOURCE_LIMIT    12

=item * WAIT_ASSOC_TIME_LIMIT        13

=item * WAIT_RESERVATION             14

=item * WAIT_NODE_NOT_AVAIL          15

=item * WAIT_HELD_USER               16

=item * WAIT_TBD2                    17

=item * FAIL_DOWN_PARTITION          18

=item * FAIL_DOWN_NODE               19

=item * FAIL_BAD_CONSTRAINTS         20

=item * FAIL_SYSTEM                  21

=item * FAIL_LAUNCH                  22

=item * FAIL_EXIT_CODE               23

=item * FAIL_TIMEOUT                 24

=item * FAIL_INACTIVE_LIMIT          25

=item * FAIL_ACCOUNT                 26

=item * FAIL_QOS                     27

=item * WAIT_QOS_THRES               28

=back

=head3 Job account types

=over 2

=item * JOB_START        0

=item * JOB_STEP         1

=item * JOB_SUSPEND      2

=item * JOB_TERMINATED   3

=back

=head3 Connection type

=over 2

=item * SELECT_MESH         0

=item * SELECT_TORUS        1

=item * SELECT_NAV          2

=item * SELECT_SMALL        3

=item * SELECT_HTC_S        4

=item * SELECT_HTC_D        5

=item * SELECT_HTC_V        6

=item * SELECT_HTC_L        7

=back

=head3 Node use type

=over 2

=item * SELECT_COPROCESSOR_MODE         0

=item * SELECT_VIRTUAL_NODE_MODE        1

=item * SELECT_NAV_MODE                 2

=back

=head3 Select jobdata type

=over 2

=item * SELECT_JOBDATA_GEOMETRY           0

=item * SELECT_JOBDATA_ROTATE             1

=item * SELECT_JOBDATA_CONN_TYPE          2

=item * SELECT_JOBDATA_BLOCK_ID           3

=item * SELECT_JOBDATA_NODES              4

=item * SELECT_JOBDATA_IONODES            5

=item * SELECT_JOBDATA_NODE_CNT           6

=item * SELECT_JOBDATA_ALTERED            7

=item * SELECT_JOBDATA_BLRTS_IMAGE        8

=item * SELECT_JOBDATA_LINUX_IMAGE        9

=item * SELECT_JOBDATA_MLOADER_IMAGE      10

=item * SELECT_JOBDATA_RAMDISK_IMAGE      11

=item * SELECT_JOBDATA_REBOOT             12

=item * SELECT_JOBDATA_RESV_ID            13

=item * SELECT_JOBDATA_PTR                14

=back

=head3 Select nodedata type

=over 2

=item * SELECT_NODEDATA_BITMAP_SIZE       0

=item * SELECT_NODEDATA_SUBGRP_SIZE       1

=item * SELECT_NODEDATA_SUBCNT            2

=item * SELECT_NODEDATA_BITMAP            3

=item * SELECT_NODEDATA_STR               4

=item * SELECT_NODEDATA_PTR               5

=back

=head3 Select print mode

=over 2

=item * SELECT_PRINT_HEAD                0

=item * SELECT_PRINT_DATA                1

=item * SELECT_PRINT_MIXED               2

=item * SELECT_PRINT_MIXED_SHORT         3

=item * SELECT_PRINT_BG_ID               4

=item * SELECT_PRINT_NODES               5

=item * SELECT_PRINT_CONNECTION          6

=item * SELECT_PRINT_ROTATE              7

=item * SELECT_PRINT_GEOMETRY            8

=item * SELECT_PRINT_START               9

=item * SELECT_PRINT_BLRTS_IMAGE         10

=item * SELECT_PRINT_LINUX_IMAGE         11

=item * SELECT_PRINT_MLOADER_IMAGE       12

=item * SELECT_PRINT_RAMDISK_IMAGE       13

=item * SELECT_PRINT_REBOOT              14

=item * SELECT_PRINT_RESV_ID             15

=back

=head3 Select node cnt

=over 2

=item * SELECT_GET_NODE_SCALING             0

=item * SELECT_GET_NODE_CPU_CNT             1

=item * SELECT_GET_BP_CPU_CNT               2

=item * SELECT_APPLY_NODE_MIN_OFFSET        3

=item * SELECT_APPLY_NODE_MAX_OFFSET        4

=item * SELECT_SET_NODE_CNT                 5

=item * SELECT_SET_BP_CNT                   6

=back

=head3 Jobacct data type

=over 2

=item * JOBACCT_DATA_TOTAL               0

=item * JOBACCT_DATA_PIPE                1

=item * JOBACCT_DATA_RUSAGE              2

=item * JOBACCT_DATA_MAX_VSIZE           3

=item * JOBACCT_DATA_MAX_VSIZE_ID        4

=item * JOBACCT_DATA_TOT_VSIZE           5

=item * JOBACCT_DATA_MAX_RSS             6

=item * JOBACCT_DATA_MAX_RSS_ID          7

=item * JOBACCT_DATA_TOT_RSS             8

=item * JOBACCT_DATA_MAX_PAGES           9

=item * JOBACCT_DATA_MAX_PAGES_ID        10

=item * JOBACCT_DATA_TOT_PAGES           11

=item * JOBACCT_DATA_MIN_CPU             12

=item * JOBACCT_DATA_MIN_CPU_ID          13

=item * JOBACCT_DATA_TOT_CPU             14

=back

=head3 Task distribution

=over 2

=item * SLURM_DIST_CYCLIC               1        

=item * SLURM_DIST_BLOCK                2

=item * SLURM_DIST_ARBITRARY            3

=item * SLURM_DIST_PLANE                4

=item * SLURM_DIST_CYCLIC_CYCLIC        5

=item * SLURM_DIST_CYCLIC_BLOCK         6

=item * SLURM_DIST_BLOCK_CYCLIC         7

=item * SLURM_DIST_BLOCK_BLOCK          8

=item * SLURM_NO_LLLP_DIST              9

=item * SLURM_DIST_UNKNOWN              10

=back

=head3 CPU bind type

=over 2

=item * CPU_BIND_VERBOSE            0x01 

=item * CPU_BIND_TO_THREADS         0x02 

=item * CPU_BIND_TO_CORES           0x04 

=item * CPU_BIND_TO_SOCKETS         0x08 

=item * CPU_BIND_TO_LDOMS           0x10 

=item * CPU_BIND_NONE               0x20 

=item * CPU_BIND_RANK               0x40 

=item * CPU_BIND_MAP                0x80 

=item * CPU_BIND_MASK               0x100

=item * CPU_BIND_LDRANK             0x200

=item * CPU_BIND_LDMAP              0x400

=item * CPU_BIND_LDMASK             0x800

=item * CPU_BIND_CPUSETS            0x8000

=back

=head3 Memory bind type

=over 2

=item * MEM_BIND_VERBOSE         0x01

=item * MEM_BIND_NONE            0x02

=item * MEM_BIND_RANK            0x04

=item * MEM_BIND_MAP             0x08

=item * MEM_BIND_MASK            0x10

=item * MEM_BIND_LOCAL           0x20

=back

=head3 Node state

=over 2

=item * NODE_STATE_UNKNOWN        0

=item * NODE_STATE_DOWN           1

=item * NODE_STATE_IDLE           2

=item * NODE_STATE_ALLOCATED      3

=item * NODE_STATE_ERROR          4

=item * NODE_STATE_MIXED          5

=item * NODE_STATE_FUTURE         6

=item * NODE_STATE_END            7

=back

=head3 Ctx keys

=over 2

=item * SLURM_STEP_CTX_STEPID               0

=item * SLURM_STEP_CTX_TASKS                1

=item * SLURM_STEP_CTX_TID                  2

=item * SLURM_STEP_CTX_RESP                 3

=item * SLURM_STEP_CTX_CRED                 4

=item * SLURM_STEP_CTX_SWITCH_JOB           5

=item * SLURM_STEP_CTX_NUM_HOSTS            6

=item * SLURM_STEP_CTX_HOST                 7

=item * SLURM_STEP_CTX_JOBID                8

=item * SLURM_STEP_CTX_USER_MANAGED_SOCKETS 9

=back


head2 SLURM ERRNO

=head3 Defined macro error values

=over 2

=item * SLURM_SUCCESS           0

=item * SLURM_ERROR             -1

=item * SLURM_FAILURE           -1

=item * SLURM_SOCKET_ERROR      -1

=item * SLURM_PROTOCOL_SUCCESS  0

=item * SLURM_PROTOCOL_ERROR    -1

=back

=head3 General Message error codes

=over 2

=item * SLURM_UNEXPECTED_MSG_ERROR                      1000

=item * SLURM_COMMUNICATIONS_CONNECTION_ERROR           1001

=item * SLURM_COMMUNICATIONS_SEND_ERROR                 1002

=item * SLURM_COMMUNICATIONS_RECEIVE_ERROR              1003

=item * SLURM_COMMUNICATIONS_SHUTDOWN_ERROR             1004

=item * SLURM_PROTOCOL_VERSION_ERROR                    1005

=item * SLURM_PROTOCOL_IO_STREAM_VERSION_ERROR          1006

=item * SLURM_PROTOCOL_AUTHENTICATION_ERROR             1007

=item * SLURM_PROTOCOL_INSANE_MSG_LENGTH                1008

=item * SLURM_MPI_PLUGIN_NAME_INVALID                   1009

=item * SLURM_MPI_PLUGIN_PRELAUNCH_SETUP_FAILED         1010

=item * SLURM_PLUGIN_NAME_INVALID                       1011

=item * SLURM_UNKNOWN_FORWARD_ADDR                      1012

=back

=head3 communication failures to/from slurmctld

=over 2

=item * SLURMCTLD_COMMUNICATIONS_CONNECTION_ERROR       1800

=item * SLURMCTLD_COMMUNICATIONS_SEND_ERROR             1801

=item * SLURMCTLD_COMMUNICATIONS_RECEIVE_ERROR          1802

=item * SLURMCTLD_COMMUNICATIONS_SHUTDOWN_ERROR         1803

=back

=head3 _info.c/communcation layer RESPONSE_SLURM_RC message codes

=over 2

=item * SLURM_NO_CHANGE_IN_DATA                         1900

=back

=head3 slurmctld error codes

=over 2

=item * ESLURM_INVALID_PARTITION_NAME                   2000

=item * ESLURM_DEFAULT_PARTITION_NOT_SET                2001

=item * ESLURM_ACCESS_DENIED                            2002

=item * ESLURM_JOB_MISSING_REQUIRED_PARTITION_GROUP     2003

=item * ESLURM_REQUESTED_NODES_NOT_IN_PARTITION         2004

=item * ESLURM_TOO_MANY_REQUESTED_CPUS                  2005

=item * ESLURM_INVALID_NODE_COUNT                       2006

=item * ESLURM_ERROR_ON_DESC_TO_RECORD_COPY             2007

=item * ESLURM_JOB_MISSING_SIZE_SPECIFICATION           2008

=item * ESLURM_JOB_SCRIPT_MISSING                       2009

=item * ESLURM_USER_ID_MISSING                          2010

=item * ESLURM_DUPLICATE_JOB_ID                         2011

=item * ESLURM_PATHNAME_TOO_LONG                        2012

=item * ESLURM_NOT_TOP_PRIORITY                         2013

=item * ESLURM_REQUESTED_NODE_CONFIG_UNAVAILABLE        2014

=item * ESLURM_REQUESTED_PART_CONFIG_UNAVAILABLE        2015

=item * ESLURM_NODES_BUSY                               2016

=item * ESLURM_INVALID_JOB_ID                           2017

=item * ESLURM_INVALID_NODE_NAME                        2018

=item * ESLURM_WRITING_TO_FILE                          2019

=item * ESLURM_TRANSITION_STATE_NO_UPDATE               2020

=item * ESLURM_ALREADY_DONE                             2021

=item * ESLURM_INTERCONNECT_FAILURE                     2022

=item * ESLURM_BAD_DIST                                 2023

=item * ESLURM_JOB_PENDING                              2024

=item * ESLURM_BAD_TASK_COUNT                           2025

=item * ESLURM_INVALID_JOB_CREDENTIAL                   2026

=item * ESLURM_IN_STANDBY_MODE                          2027

=item * ESLURM_INVALID_NODE_STATE                       2028

=item * ESLURM_INVALID_FEATURE                          2029

=item * ESLURM_INVALID_AUTHTYPE_CHANGE                  2030

=item * ESLURM_INVALID_CHECKPOINT_TYPE_CHANGE           2031

=item * ESLURM_INVALID_SCHEDTYPE_CHANGE                 2032

=item * ESLURM_INVALID_SELECTTYPE_CHANGE                2033

=item * ESLURM_INVALID_SWITCHTYPE_CHANGE                2034

=item * ESLURM_FRAGMENTATION                            2035

=item * ESLURM_NOT_SUPPORTED                            2036

=item * ESLURM_DISABLED                                 2037

=item * ESLURM_DEPENDENCY                               2038

=item * ESLURM_BATCH_ONLY                               2039

=item * ESLURM_TASKDIST_ARBITRARY_UNSUPPORTED           2040

=item * ESLURM_TASKDIST_REQUIRES_OVERCOMMIT             2041

=item * ESLURM_JOB_HELD                                 2042

=item * ESLURM_INVALID_CRYPTO_TYPE_CHANGE               2043

=item * ESLURM_INVALID_TASK_MEMORY                      2044

=item * ESLURM_INVALID_ACCOUNT                          2045

=item * ESLURM_INVALID_PARENT_ACCOUNT                   2046

=item * ESLURM_SAME_PARENT_ACCOUNT                      2047

=item * ESLURM_INVALID_LICENSES                         2048

=item * ESLURM_NEED_RESTART                             2049

=item * ESLURM_ACCOUNTING_POLICY                        2050

=item * ESLURM_INVALID_TIME_LIMIT                       2051

=item * ESLURM_RESERVATION_ACCESS                       2052

=item * ESLURM_RESERVATION_INVALID                      2053

=item * ESLURM_INVALID_TIME_VALUE                       2054

=item * ESLURM_RESERVATION_BUSY                         2055

=item * ESLURM_RESERVATION_NOT_USABLE                   2056

=item * ESLURM_INVALID_WCKEY                            2057

=item * ESLURM_RESERVATION_OVERLAP                      2058

=item * ESLURM_PORTS_BUSY                               2059

=item * ESLURM_PORTS_INVALID                            2060

=item * ESLURM_PROLOG_RUNNING                           2061

=item * ESLURM_NO_STEPS                                 2062

=item * ESLURM_INVALID_BLOCK_STATE                      2063

=item * ESLURM_INVALID_BLOCK_LAYOUT                     2064

=item * ESLURM_INVALID_BLOCK_NAME                       2065

=item * ESLURM_INVALID_QOS                              2066

=item * ESLURM_QOS_PREEMPTION_LOOP                      2067

=item * ESLURM_NODE_NOT_AVAIL                           2068

=item * ESLURM_INVALID_CPU_COUNT                        2069

=item * ESLURM_PARTITION_NOT_AVAIL                      2070

=item * ESLURM_CIRCULAR_DEPENDENCY                      2071

=item * ESLURM_INVALID_GRES                             2072

=item * ESLURM_JOB_NOT_PENDING                          2073

=back

=head3 switch specific error codes specific values defined in plugin module

=over 2

=item * ESLURM_SWITCH_MIN        3000

=item * ESLURM_SWITCH_MAX        3099

=item * ESLURM_JOBCOMP_MIN       3100

=item * ESLURM_JOBCOMP_MAX       3199

=item * ESLURM_SCHED_MIN         3200

=item * ESLURM_SCHED_MAX         3299

=back

=head3 slurmd error codes

=over 2

=item * ESLRUMD_PIPE_ERROR_ON_TASK_SPAWN        4000

=item * ESLURMD_KILL_TASK_FAILED                4001

=item * ESLURMD_KILL_JOB_ALREADY_COMPLETE       4002

=item * ESLURMD_INVALID_ACCT_FREQ               4003

=item * ESLURMD_INVALID_JOB_CREDENTIAL          4004

=item * ESLURMD_UID_NOT_FOUND                   4005

=item * ESLURMD_GID_NOT_FOUND                   4006

=item * ESLURMD_CREDENTIAL_EXPIRED              4007

=item * ESLURMD_CREDENTIAL_REVOKED              4008

=item * ESLURMD_CREDENTIAL_REPLAYED             4009

=item * ESLURMD_CREATE_BATCH_DIR_ERROR          4010

=item * ESLURMD_MODIFY_BATCH_DIR_ERROR          4011

=item * ESLURMD_CREATE_BATCH_SCRIPT_ERROR       4012

=item * ESLURMD_MODIFY_BATCH_SCRIPT_ERROR       4013

=item * ESLURMD_SETUP_ENVIRONMENT_ERROR         4014

=item * ESLURMD_SHARED_MEMORY_ERROR             4015

=item * ESLURMD_SET_UID_OR_GID_ERROR            4016

=item * ESLURMD_SET_SID_ERROR                   4017

=item * ESLURMD_CANNOT_SPAWN_IO_THREAD          4018

=item * ESLURMD_FORK_FAILED                     4019

=item * ESLURMD_EXECVE_FAILED                   4020

=item * ESLURMD_IO_ERROR                        4021

=item * ESLURMD_PROLOG_FAILED                   4022

=item * ESLURMD_EPILOG_FAILED                   4023

=item * ESLURMD_SESSION_KILLED                  4024

=item * ESLURMD_TOOMANYSTEPS                    4025

=item * ESLURMD_STEP_EXISTS                     4026

=item * ESLURMD_JOB_NOTRUNNING                  4027

=item * ESLURMD_STEP_SUSPENDED                  4028

=item * ESLURMD_STEP_NOTSUSPENDED               4029

=back

=head3 slurmd errors in user batch job

=over 2

=item * ESCRIPT_CHDIR_FAILED              4100

=item * ESCRIPT_OPEN_OUTPUT_FAILED        4101

=item * ESCRIPT_NON_ZERO_RETURN           4102

=back

=head3 socket specific SLURM communications error

=over 2

=item * SLURM_PROTOCOL_SOCKET_IMPL_ZERO_RECV_LENGTH        5000

=item * SLURM_PROTOCOL_SOCKET_IMPL_NEGATIVE_RECV_LENGTH    5001

=item * SLURM_PROTOCOL_SOCKET_IMPL_NOT_ALL_DATA_SENT       5002

=item * ESLURM_PROTOCOL_INCOMPLETE_PACKET                  5003

=item * SLURM_PROTOCOL_SOCKET_IMPL_TIMEOUT                 5004

=item * SLURM_PROTOCOL_SOCKET_ZERO_BYTES_SENT              5005

=back

=head3 slurm_auth errors

=over 2

=item * ESLURM_AUTH_CRED_INVALID        6000

=item * ESLURM_AUTH_FOPEN_ERROR         6001

=item * ESLURM_AUTH_NET_ERROR           6002

=item * ESLURM_AUTH_UNABLE_TO_SIGN      6003

=back

=head3 accounting errors

=over 2

=item * ESLURM_DB_CONNECTION            7000

=item * ESLURM_JOBS_RUNNING_ON_ASSOC    7001

=item * ESLURM_CLUSTER_DELETED          7002

=item * ESLURM_ONE_CHANGE               7003

=back

=head2 

=head1 SEE ALSO

Slurm

=head1 AUTHOR

This library is created by Hongjia Cao, E<lt>hjcao(AT)nudt.edu.cnE<gt> and Danny Auble, E<lt>da(AT)llnl.govE<gt>. It is distributed with SLURM.

=head1 COPYRIGHT AND LICENSE

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself, either Perl version 5.8.4 or,
at your option, any later version of Perl 5 you may have available.

=cut