ezpz.pbsΒΆ
- See ezpz/
pbs.py
pbs.py
Contains helper functions for working with the PBS Pro scheduler @ ALCF
See: docs/pbs.md for more information.
build_launch_cmd(ngpus=None, nhosts=None, ngpu_per_host=None, hostfile=None)
ΒΆ
Build the launch command for the current job.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
The launch command. |
Source code in src/ezpz/pbs.py
get_pbs_env(hostfile=None, jobid=None, verbose=None)
ΒΆ
Get the PBS environment variables
Source code in src/ezpz/pbs.py
get_pbs_jobid_of_active_job()
ΒΆ
Get the jobid of the currently active job.
Source code in src/ezpz/pbs.py
get_pbs_launch_cmd(ngpus=None, nhosts=None, ngpu_per_host=None, hostfile=None, *, verbose=False)
ΒΆ
Get the PBS launch command.
ParametersΒΆ
ngpus : int, optional
Total number of GPUs to use. If None, inferred from other args or max.
nhosts : int, optional
Number of hosts (nodes). If None, defaults to max available.
ngpu_per_host : int, optional
GPUs per host. If None, inferred when possible.
hostfile : path-like, optional
Hostfile to use. If None, uses a fallback from get_hostfile_with_fallback.
verbose : bool, keyword-only
If True, log more and pass --verbose (where applicable).
Source code in src/ezpz/pbs.py
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 | |
get_pbs_launch_info(hostfile=None, jobid=None)
ΒΆ
Get the PBS launch info
Source code in src/ezpz/pbs.py
get_pbs_nodefile(jobid=None)
ΒΆ
Get the nodefile for a given jobid.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
jobid
|
int | str
|
The jobid to get the nodefile for. Defaults to None. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
str |
str | None
|
The path to the nodefile. |
Source code in src/ezpz/pbs.py
get_pbs_nodefile_from_jobid(jobid)
ΒΆ
Get the nodefile for a given jobid.
Source code in src/ezpz/pbs.py
get_pbs_nodefile_of_active_job()
ΒΆ
Get the nodefile for the currently active job.
get_pbs_nodelist_from_jobid(jobid)
ΒΆ
Get the nodelist for a given jobid.
Source code in src/ezpz/pbs.py
get_pbs_running_jobs_for_user()
ΒΆ
Get all running jobs for the current user.
Source code in src/ezpz/pbs.py
get_running_jobs_from_qstat()
ΒΆ
Get the running jobs from qstat