Job Submission in Windows HPC Server 2008 R2 Quick Reference
Applies To: Windows HPC Server 2008 R2
This topic provides a quick reference for common job submission and job management actions Windows® HPC Server 2008 R2. The tables below provide links to help topics for performing these actions using the three primary job submission interfaces in Windows HPC Server 2008 R2: HPC Job Manager, the Command Prompt window, and HPC PowerShell.
Looking for the Windows HPC 2008 Quick Reference guide? See Job Submission in Windows HPC Server 2008 Quick Reference.
In this topic:
Submit jobs
Manage your jobs
Additional job submission resources
Submit jobs
To submit a job, you must have been added as a user on the cluster, or you must be a member of a doMayn group that has been added as a user on the cluster. For more information, contact your cluster administrator.
Action | HPC Job Manager | Command-prompt window | HPC PowerShell |
---|---|---|---|
Create and submit a job |
job add job submit For example:
|
Add-HpcTask Submit-HpcJob For example:
|
|
Quickly submit a single-task job |
In HPC Job Manager, in the Actions pane, click New Single-Task Job or New Parametric Sweep Job. |
job submit For example:
or
|
Not available |
Add an MPI task |
job add Include the launcher mpiexec in the command line of the task. For example:
|
Add-HpcTask Include the launcher mpiexec in the For example:
|
|
Add a parametric task |
job add For example:
|
Add-HpcTask The default increment is 1, so unless your increment is different, you can omit this parameter. For example:
|
|
Define task dependencies |
job add For example:
|
Add-HpcTask For example:
|
|
Configure nodes before your Mayn tasks run |
job add For example:
|
Add-HpcTask For example:
|
|
Clean up nodes after your Mayn tasks run |
job add For example:
|
Add-HpcTask For example:
|
Manage your jobs
To copy, save, cancel, requeue, or modify a job, or to view job or task details and results, you must be the submitting user (the job owner), or have administrative permissions.
Actions | HPC Job Manager | Command-prompt window | HPC PowerShell |
---|---|---|---|
View job properties and results |
job view For example:
For more details:
|
Get-HpcJob For example:
For more details, pipe into
For specific properties, pipe into
|
|
View task properties and results |
task view For example, to view all tasks for a job:
To see a specific task with more details:
|
Get-HpcTask For example, to view all tasks for a job:
To see a specific task with more details, pipe into
To filter tasks by state and see specific properties:
|
|
Track the state of your jobs |
For example, to see your active jobs (queued or running):
|
For example, to see your active jobs (queued or running):
|
|
Save a job to an XML description file |
Not available |
Export-HpcJob For example, to save the job XML to c:\myJobs\myAppJob.xml:
|
|
Save a task to an XML description file |
Not available |
Export-HpcTask For example to save the task XML to c:\myJobs\myNodePrepTask.xml:
|
|
Requeue a canceled or failed job |
job requeue For example:
|
Submit-HpcJob For example:
|
|
Requeue a task |
task requeue For example:
|
Use the
|
|
Copy a job or resubmit a finished job |
job clone job submit For example:
To copy, modify priority, and then submit:
|
Get-HpcJob New-HpcJob For example:
To copy, modify priority, and then submit:
|
|
Copy a task |
Not available |
Not available |
|
Cancel a job |
This topic also describes what happens to job and task states on cancellation. Using HPC PowerShell or a command prompt, you have the additional option to Force Cancel a Job or Task. You cannot force cancel using HPC Job Manager. |
job cancel For example:
To force cancel (skip task cancel grace period and node release tasks):
|
Stop-HpcJob For example: To force cancel (skip task cancel grace period and node release tasks):
|
Cancel a task |
task cancel For example:
To force cancel a subtask (skip task cancel grace period):
|
Stop-HpcTask For example:
Alternately, you can use the
To force cancel a subtask (skip task cancel grace period):
|
|
End a “run until canceled” job as Finished |
Not available |
job finish For example:
|
Stop-HpcJob For example:
|
Modify a job |
This topic also describes what properties can be modified in each job state. |
job modify For example, to specify a required license:
|
Set-HpcJob For example, to specify a required license:
|
Exclude specific nodes from your job |
Not available For more information, see Define Excluded Nodes for a Job |
job modify The node list is comma separated. Do not include spaces. For example:
|
Set-HpcJob For example:
|