| 1 | package HPCD::SGE; | ||
| 2 | ### HPCD::SGE.pm ########################################################################### | ||
| 3 | |||
| 4 | =head1 NAME | ||
| 5 | |||
| 6 | HPCD::SGE | ||
| 7 | |||
| 8 | =head1 VERSION | ||
| 9 | |||
| 10 | Version 0.56 | ||
| 11 | |||
| 12 | =cut | ||
| 13 | |||
| 14 | our $VERSION = '0.56'; | ||
| 15 | |||
| 16 | =head1 SYNOPSIS | ||
| 17 | |||
| 18 | use HPCI; | ||
| 19 | |||
| 20 | my $group = HPCI->group(cluster => 'SGE', ...); | ||
| 21 | |||
| 22 | =head1 DESCRIPTION | ||
| 23 | |||
| 24 | This is a driver module that can be used internally from HPCI, by | ||
| 25 | specifying a cluster type of 'SGE'. It customizes the HPCI access | ||
| 26 | interface to control jobs submitted to an SGE (Sun Grid Engine) cluster. | ||
| 27 | |||
| 28 | The differences provided by the SGE driver are: | ||
| 29 | |||
| 30 | =over | ||
| 31 | |||
| 32 | =item - | ||
| 33 | |||
| 34 | the following resource names have sge-specific aliases | ||
| 35 | |||
| 36 | =over | ||
| 37 | |||
| 38 | =item mem | ||
| 39 | h_vmem | ||
| 40 | |||
| 41 | =item h_time | ||
| 42 | h_rt | ||
| 43 | |||
| 44 | =item s_time | ||
| 45 | s_rt | ||
| 46 | |||
| 47 | =back | ||
| 48 | |||
| 49 | Using these aliases causes your code to be SGE-specific. That makes | ||
| 50 | converting it to use an alternate type of cluster more painful. However, | ||
| 51 | if you do not expect to ever be moving your code to a different cluster | ||
| 52 | type, this might simplify the interface for people who already know the | ||
| 53 | SGE-specific resource names and wish to avoid the confusion that might | ||
| 54 | come from using the generic names. | ||
| 55 | |||
| 56 | =item - | ||
| 57 | |||
| 58 | a stage attribute B<extra_sge_args_string> is available which specifies a string of | ||
| 59 | argument(s) that will be included in the qsub command that starts execution of that | ||
| 60 | stage | ||
| 61 | |||
| 62 | =item - | ||
| 63 | |||
| 64 | The B<name> attribute for a stage will be filtered to only allow letters, | ||
| 65 | digits, dash, dot, and underscore. After this filtering, the name must | ||
| 66 | still be unique within the group. (This is a requirement for names submitted | ||
| 67 | to the SGE system.) | ||
| 68 | |||
| 69 | =item - | ||
| 70 | |||
| 71 | The result information hash returned by C<$stats = $group-E<gt>execute> | ||
| 72 | includes all of the info provided by the SGE qacct command, not just | ||
| 73 | the exit status. | ||
| 74 | |||
| 75 | =item - | ||
| 76 | |||
| 77 | If a stage is terminated because it exceeds the requested memory resource | ||
| 78 | limit, then it will normally be retried using a higher limit. | ||
| 79 | The default is to first try with '2G' (if no h_mem or mem resource limit | ||
| 80 | is explicitly specified). After mem failures, the next larger size in the | ||
| 81 | default sequence (2G 4G 8G 16G 32G) is attempted. The detection for | ||
| 82 | exceeding the memory requirement is concoluted, because SGE does not return | ||
| 83 | a clear indiciation that it terminated the job. HPCI considers it to have | ||
| 84 | been a memory overrun if the memory usage exceeds a threshold (default is 99% | ||
| 85 | of requested memory allocation, but the attribute B<retry_mem_percent> | ||
| 86 | can be specified to provide an alternate range), or if one of a few common | ||
| 87 | memory allocation failure requests is seen. | ||
| 88 | |||
| 89 | =item - | ||
| 90 | |||
| 91 | The SGE driver use the DRMAA binary library to interface with the SGE system | ||
| 92 | if it can, otherwise it uses the SGE user interface programs (qsub, qacct, | ||
| 93 | qdel). | ||
| 94 | |||
| 95 | You can set the environment variable HPCI_NO_DRMAA to a true value if you | ||
| 96 | wish to prevent use of the DRMAA library. (This is mostly provided to be | ||
| 97 | able to test that both mechanisms work correctly, but it might also be | ||
| 98 | useful on a system that has a broken DRMAA interface that appears to load | ||
| 99 | correctly.) | ||
| 100 | |||
| 101 | =back | ||
| 102 | |||
| 103 | =head1 SEE ALSO | ||
| 104 | |||
| 105 | =over | ||
| 106 | |||
| 107 | =item HPCI | ||
| 108 | |||
| 109 | Describes the generic HPCI iterface - this manual is only providing | ||
| 110 | the exceptions to that document (and its related documents). | ||
| 111 | |||
| 112 | =item HPCI::Group | ||
| 113 | |||
| 114 | Describes the interface common to all B<HPCI Group> | ||
| 115 | objects, regardless of the particular type of cluster that | ||
| 116 | is actually being used to run the stages. | ||
| 117 | |||
| 118 | =item HPCI::Stage | ||
| 119 | |||
| 120 | Describes the interface common to stage object returned | ||
| 121 | by all B<HPCI Stage> objects, regardless of the | ||
| 122 | particular type of cluster that is actually being used to | ||
| 123 | run the stages. | ||
| 124 | |||
| 125 | =back | ||
| 126 | |||
| 127 | =head1 AUTHOR | ||
| 128 | |||
| 129 | Christopher Lalansingh - Boutros Lab | ||
| 130 | |||
| 131 | John Macdonald - Boutros Lab | ||
| 132 | |||
| 133 | =head1 ACKNOWLEDGEMENTS | ||
| 134 | |||
| 135 | Paul Boutros, Phd, PI - Boutros Lab | ||
| 136 | |||
| 137 | The Ontario Institute for Cancer Research | ||
| 138 | |||
| 139 | =cut | ||
| 140 | |||
| 141 | 1; | ||
| 142 |