Package com.upmem.dpu

Class DpuProfile


  • public final class DpuProfile
    extends java.lang.Object
    A DPU profile, used to allocate a DPU system.

    This class provides Builder-like methods to configure the profile.

    See Also:
    DpuSystem
    • 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:
        toString in class java.lang.Object