Using resource groups with GPU hosts

Use dedicated resource groups for CPU hosts and GPU hosts. You can either create two new resource groups or use your existing resource groups. When you use existing resource groups, ensure that you specify one for CPU scheduling and the other for GPU scheduling.

Your cluster must include hosts that have GPUs.

Follow these steps to create new resource groups. If you plan to use existing resource groups, proceed to enable Spark instance groups that use GPU resources for applications.

If all GPUs on the machine are in default mode, which means sharable, you can select Number of slots per host and specify a number, which is n times the number of GPUs on the host. The bigger the value is, the more applications share the GPU. If all GPUs on the machine are in exclusive mode, select Advanced formula and enter ngpus as the value; so the slots number on the host is the number of GPUs on the host.

Create a Spark instance group. See Creating a Spark instance group to use GPUs.