Package com.upmem.dpu
Class DpuProfile
- java.lang.Object
-
- com.upmem.dpu.DpuProfile
-
public final class DpuProfile extends java.lang.ObjectA DPU profile, used to allocate a DPU system.This class provides Builder-like methods to configure the profile.
- See Also:
DpuSystem
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DpuProfilecustom(java.lang.String property, java.lang.String value)Add a custom property to the profile.static DpuProfileempty()DpuProfilenrDpus(int nrDpus)DpuProfilenrRanks(int nrRanks)DpuProfiletarget(DpuTarget target)java.lang.StringtoString()
-
-
-
Method Detail
-
empty
public static DpuProfile empty()
- Returns:
- The default DPU profile.
-
nrDpus
public DpuProfile nrDpus(int nrDpus)
- Parameters:
nrDpus- The number of DPUs to allocate.- Returns:
- The updated profile.
-
nrRanks
public DpuProfile nrRanks(int nrRanks)
- Parameters:
nrRanks- The number of DPU ranks to allocate.- Returns:
- The updated profile.
-
target
public DpuProfile target(DpuTarget target)
- Parameters:
target- the DPU backend to allocate.- Returns:
- The updated profile.
- See Also:
DpuTarget
-
custom
public DpuProfile custom(java.lang.String property, java.lang.String value)
Add a custom property to the profile.- Parameters:
property- The name of the property.value- The value of the property.- Returns:
- The updated profile.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-