oar_resources_add(1)
๐ oar_resources_add โ like, the OAR command that hands you resources ๐
okay bestie, welcome to the oar_resources_add(1) glow-up ๐
this one lives in the OAR commands family and it's literally your little helper script bestie that defines OAR resources for you. no cap.
โจ NAME โจ
oar_resource_add โ yet another helper script to define OAR resources ๐ซถ
๐ธ SYNOPSIS ๐ธ
oar_resource_add -H <# of hosts> [options]
๐ฆ DESCRIPTION ๐ฆ
so this tool generates the oarproperty and oarnodesetting commands for you, and those commands create OAR resources following the host / cpu / core (/ thread) hierarchy, possibly with GPU alongside. it's giving โจstructuredโจ
REMINDER: every single physical element (each cpu, each core, each thread, each gpu) has to have a unique identifier in the OAR resources database. no duplicates, periodt.
if some resources already exist in the database (like, say, from a previously installed cluster ๐), you can either hand over offsets on the command line, or let the auto-offset option guess them for you โ that way the identifiers for your newly created resources stay unique. slay.
this tool is also a genuinely good example of how you can create OAR resources using script loops and the oarnodesetting command. if it doesn't exactly fit your needs, feel free to read the script code and adapt it ๐ no gatekeeping here.
๐ OPTIONS ๐
-T,--use-threadsโ use (create) the thread property. threads are having a moment ๐-H,--hosts <#>โ how many hosts, bestie. the count.-C,--cpus <#>โ how many cpu per host.-c,--cores <#>โ how many core per cpu.-t,--threads <#>โ how many threads per core.-g,--gpus <#>โ how many 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. do the math, bestie.
if you don't set this, no gpu resources is handled.
--host-prefix <str>โ hostname prefix. default is"node-"๐--host-suffix <str>โ hostname suffix (like".domain"for example).--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 ๐ (yes, pretending. we love a simulation moment).--cputopo <list|RR>โ provide the topology for the CPUs/cores/threads affinity (seehwloc), given a ordered list of the Linux CPU ids (as used incpuset.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 (seehwloc), given a ordered list of the Linux GPU device ids.-A,--append <str>โ append a text string (extra properties). little bonus content, we love.-o,--write-to <file>โ write commands to file.-p,--no-create-propertiesโ do not generateoarpropertycommands.-a,--auto-offsetโ guess the next host/cpu/core/thread/gpu ids to use from the OAR database (unlesshost0/cpu0/core0/thread0/gpu0is set).
WARNING: properties must already exist in your database or you will get errors ๐ like, actually. it will not be cute.
-Y,--yamlโ generate YAML output. for the yaml girlies ๐ง-h,--helpโ display usage.
โ ๏ธ WARNING โ ๏ธ
the oar_resource_add tool does not look at the actual hardware topology of the target machines. so 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. trust the process, bestie.
๐ 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.
okay and that's the whole page ๐ huge shoutout to the oar_resources_add page from the OAR commands manual, dated 2023-07-10 โ mwah, iconic, no notes. bye bestie, go create some resources ๐ซถโจ๐
๐ฆ where this page comes from
- ubuntu noble: oar-server 2.5.10-1 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms