oar_resources_add(1) | OAR commands | oar_resources_add(1) |
oar_resource_add - Yet another helper script to define OAR resources
oar_resource_add -H <# of hosts> [options]
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.
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.
Or, given the RR value, try to match a round-robin distribution of the core ids, with optionally HyperThreads as well.
WARNING: properties must already exist in your database or you will get errors.
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.
oarnodesetting(1), oarproperty(1), oar_resources_init(1), bash(1), hwloc(7), lstopo(1)
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.
2021-01-11 | oar_resources_add |