Provided by: oar-server_2.5.8-2_amd64 bug

NAME

       oar_resource_add - Yet another helper script to define OAR resources

SYNOPSIS

       oar_resource_add -H <# of hosts> [options]

DESCRIPTION

       This tool generates the oarproperty and oarnodesetting commands to create OAR resources
       following the host / cpu / core (/ thread) hierarchy, possibly with GPU alongside.

       REMINDER: Each physical element (each cpu, each core, each thread, each gpu) must have a
       unique identifier in the OAR resources database. If some resources already exists in the
       database (e.g. from a previously installed cluster), offsets can be given in the command
       line or guessed with the auto-offset option, so that identifiers for newly created
       resources are unique.

       This tool is also a good example of how one can create OAR resources using script loops
       and the oarnodesetting command. If it does not exactly fit your needs, feel free to read
       the script code and adapt it.

OPTIONS

       -T, --use-threads
           Use (create) the thread property.

       -H, --hosts <#>
           # of hosts.

       -C, --cpus <#>
           # of cpu per host.

       -c, --cores <#>
           # of core per cpu.

       -t, --threads <#>
           # of threads per core.

       -g, --gpus <#>
           # of gpus per host.

           WARNING, not all hardware configurations are supported: For multi-GPU configurations,
           the # of cores per cpu must be a multiple of the # of gpus per cpu.

           If not set, no gpu resources is handled.

       --host-prefix <str>
           Hostname prefix (default: "node-").

       --host-suffix <str>
           Hostname suffix (e.g. ".domain").

       --host0 <#>
           First host id to use.

       --cpu0 <#>
           First cpu id to use.

       --core0 <#>
           First core id to use.

       --thread0 <#>
           First thread id to use.

       --gpu0 <#>
           First gpu id to use.

       --cpusets <#>
           # of cpusets on host (mainly useful for development purposes when one wants to emulate
           more cores than systems really have).

       --cputopo <list|RR>
           Provide the topology for the CPUs/cores/threads affinity (see hwloc), given a ordered
           list of the Linux CPU ids (as used in cpuset.cpus).

           Or, given the RR value, try to match a round-robin distribution of the core ids, with
           optionally HyperThreads as well.

       --gpudevices <#>
           # of gpudevices on host (mainly useful for development purposes when one wants to
           emulate more GPUs than systems really have).

       --gputopo <list>
           Provide the topology for the CPUs/GPUs affinity (see hwloc), given a ordered list of
           the Linux GPU device ids.

       -A, --append <str>
           Append a text string (extra properties).

       -o, --write-to <file>
           Write commands to file.

       -p, --no-create-properties
           Do not generate oarproperty commands.

       -a, --auto-offset
           Guess the next host/cpu/core/thread/gpu ids to use from the OAR database (unless
           host0/cpu0/core0/thread0/gpu0 is set).

           WARNING: properties must already exist in your database or you will get errors.

       -Y, --yaml
           Generate YAML output.

       -h, --help
           Display usage.

WARNING

       The oar_resource_add tool does not look at the actual hardware topology of the target
       machines. Core and GPU device affinity to CPU may not be correct. See the hwloc commands
       for instance to find out the correct topology and affinity, and use the --cputopo and
       --gputopo options accordingly.

SEE ALSO

       oarnodesetting(1), oarproperty(1), oar_resources_init(1), bash(1), hwloc(7), lstopo(1)

COPYRIGHTS

        Copyright 2003-2018 Laboratoire d'Informatique de Grenoble (http://www.liglab.fr). This software is licensed under the GNU General Public License Version 2 or above. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.