Alert.png The wiki is deprecated and due to be decommissioned by the end of September 2022.
The content is being migrated to other supports, new updates will be ignored and lost.
If needed you can get in touch with EGI SDIS team using operations @ egi.eu.

Difference between revisions of "GPGPU-WG KnowledgeBase Batch Schedulers SchedulerScenarios"

From EGIWiki
Jump to navigation Jump to search
Line 47: Line 47:
JobType="Normal";
JobType="Normal";
NumNodes = 2;
NumNodes = 2;
Executable = "myScript.sh";  
Executable = "myScript.sh"; # myScript must take responsibility for executing the GPGPU application on both the allocated core/GPGPU pairs.
StdOutput = "std.out";
StdOutput = "std.out";
StdError = "std.err";
StdError = "std.err";

Revision as of 00:16, 28 February 2014

Single GPGPU per node

A simple batch setup that assumes a physical node and its componenent GPGPU card expose a single Job Slot would simplify Resource Centre setup. Each GPGPU node could be partitioned from the non-GPGPU nodes using an access-control-list. However, most modern physical nodes contain and expose multiple CPU-cores to the batch system. If the physical system supports Virtualisation, a CPU-core could be allocated to the GPU on the phsical node, and a single virtual machine could expose the remainder of the job slots. For example: Assume the physical host (wn1) has 8-cores, we can configure the node to declare (in torque) "np=1" to the batch system. If we create a VM with "np=7", then all cores can be allocated to the batch system.


Options for RC

  • Define a queue with name tagged gpgpu
  • Apply the usual VO restrictions on the queue
  • Define an ACL that partitions these nodes from non-GPGPU nodes
  • Publish basic SoftwareEnvironment (eg. CUDA, CUDA-5, CUDA-5.5)
  • Ensure the WN environment is configured with all relevant GPGPU Software development kit installed.

JDL

[
Type="Job";

JobType="Normal";
Executable = "myScript.sh";
StdOutput = "std.out";
StdError = "std.err";
InputSandbox =  {"myScript.sh"};
Requirements =  ( RegExp("*gpgpu$", other.GlueCEUniqueID) && Member("CUDA", other.GlueHostApplicationSoftwareRunTimeEnvironment);
]

Multiple GPGPUs per Physical Node

Similar to the Virtualisation example above, a physical node with N-gpgpu cards could be configured with:

np=#NUM_OF_GPGPUS

A virtual machine could the remaining number of cores:

np=#NUM_OF_CORES-#NUM_OF_GPGPUS job slots


The drawback of this scheme is that we need to develop a scheme to ensure that jobs from distinct users cannot interfere with each other. User code could try to enumerate and use all the GPGPUs on the node. This will have (potentially job-catastrophic) unintended side-effects, so we need some mechanism to ensure that a user-job does not consume more than its allocation.


JDL Example

This example simply requests 2 job slots from any queue matching "*gpgpu$". The allocated cores may be on distinct hosts, so we cannot assume that the the GPGPU application will see or can enumerate both GPGPU cards. This is equivalent to the PBS -l nodes=2

[
Type="Job";
JobType="Normal";
NumNodes = 2;
Executable = "myScript.sh";  # myScript must take responsibility for executing the GPGPU application on both the allocated core/GPGPU pairs.
StdOutput = "std.out";
StdError = "std.err";
InputSandbox =  {"myScript.sh"};
Requirements =  ( RegExp("*gpgpu$", other.GlueCEUniqueID) && Member("CUDA", other.GlueHostApplicationSoftwareRunTimeEnvironment);
]