Define computation of ncpus on dynamic hosts

About this task

The ncpus global definition can be overridden on specified dynamic and static hosts in the cluster.

Procedure

  1. Open lsf.conf or ego.conf.
    • UNIX and Linux:

      LSF_CONFDIR/lsf.conf

      LSF_CONFDIR/ego/cluster_name/kernel/ego.conf

    • Windows:

      LSF_CONFDIR\lsf.conf

      LSF_CONFDIR\ego\cluster_name\kernel\ego.conf

    Important:

    You can set EGO_LOCAL_RESOURCES in ego.conf only if EGO is enabled in the LSF cluster. If EGO is not enabled, you must set EGO_LOCAL_RESOURCES in lsf.conf.

  2. Define the parameter EGO_LOCAL_RESOURCES="[resource resource_name]".
    Set resource_name to one of the following:
    • define_ncpus_procs

    • define_ncpus_cores

    • define_ncpus_threads

    Note:

    Resource definitions are mutually exclusive. Choose only one resource definition per host.

    For example:
    • Windows: EGO_LOCAL_RESOURCES="[type NTX86] [resource define_ncpus_procs]"

    • Linux: EGO_LOCAL_RESOURCES="[resource define_ncpus_cores]"

  3. Save and close ego.conf.

Results

Note:

In multi-cluster environments, if ncpus is defined on a per-host basis (thereby overriding the global setting) the definition is applied to all clusters that the host is a part of. In contrast, globally defined ncpus settings only take effect within the cluster for which EGO_DEFINE_NCPUS is defined.