public class ConcurrencyPlan extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_NUMBER_GPUS
The default number of GPUs used for
numberGPUs in certain constructors. |
Modifier and Type | Method and Description |
---|---|
ConcurrencyPlan |
disableGPUs()
Derive a
ConcurrencyPlan that preserves the number of CPUs but disables all GPUs. |
static ConcurrencyPlan |
multipleProcessors(int maxNumberCPUs,
int maxNumberGPUs)
Creates a plan for a multiple CPU-processors.
|
static ConcurrencyPlan |
noCPUProcessor()
Creates a plan for no CPU processors with the default number of GPUs.
|
int |
numberCPUs()
The number of CPUs to be used in the plan.
|
int |
numberGPUs()
The number of GPUs to be used in the plan.
|
static ConcurrencyPlan |
singleCPUProcessor()
Creates a plan for a single-CPU processor with the default number of GPUs.
|
static ConcurrencyPlan |
singleCPUProcessor(int maxNumberGPUs)
Creates a plan for a single-CPU processor - with a maximum number of GPUs.
|
public static final int DEFAULT_NUMBER_GPUS
numberGPUs
in certain constructors.public static ConcurrencyPlan noCPUProcessor()
public static ConcurrencyPlan singleCPUProcessor()
public static ConcurrencyPlan singleCPUProcessor(int maxNumberGPUs)
maxNumberGPUs
- the maximum number of available GPUs that may be used, if available.public static ConcurrencyPlan multipleProcessors(int maxNumberCPUs, int maxNumberGPUs)
maxNumberCPUs
- the maximum number of CPU processors that may be used, if available.maxNumberGPUs
- the maximum number of GPU processors that may be used, if available.public ConcurrencyPlan disableGPUs()
ConcurrencyPlan
that preserves the number of CPUs but disables all GPUs.
This operation is immutable.
ConcurrencyPlan
public int numberCPUs()
public int numberGPUs()
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.