oar_resources_add(8)

πŸ“¦
version 2.6.1 Β· 3 versions
, in debian trixie, ubuntu questing

πŸ’– oar_resources_add β€” NAME πŸ’–

oar_resource_add β€” bestie, it's yet another helper script to define OAR resources ✨ (yes, the manual page is oar_resources_add(8), the command itself is oar_resource_add, iykyk, we love a little naming chaos 🫢)


🌸 SYNOPSIS 🌸

oar_resource_add -H <# of hosts> [options]

πŸŽ€ DESCRIPTION πŸŽ€

okay so. this tool generates the oarproperty and oarnodesetting commands that you need to create OAR resources, and it follows the whole host / cpu / core (/ thread) hierarchy, possibly with GPU alongside. it's giving very structured. very organized. we stan πŸ’…

REMINDER: each physical element (each cpu, each core, each thread, each gpu) must have a unique identifier in the OAR resources database. no duplicates, no cap. 🚫

if some resources already exist in the database (like, say, from a previously installed cluster πŸ‘€), you can either pass offsets on the command line, or let the auto-offset option guess them for you β€” that way the identifiers for the newly created resources stay unique. slay.

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. main character energy: read the source, bestie πŸ“–βœ¨


✨ OPTIONS ✨

  • -T, --use-threads β€” use (create) the thread property. thread girlies rise 🧡
  • -H, --hosts <#> β€” the number of hosts.
  • -C, --cpus <#> β€” the number of cpu per host.
  • -c, --cores <#> β€” the number of core per cpu.
  • -t, --threads <#> β€” the number of threads per core.
  • -g, --gpus <#> β€” the number 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. do the math first bestie, it's not optional 😭

if not set, no gpu resources is handled. (no gpus, no problem πŸ’…)

  • --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). fake it till you make it 🫢
  • --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). manifesting extra GPUs ✨
  • --gpudevice-prefix <str> β€” path prefix to use for the path of the device file of the GPU (e.g.: /dev/nvidia).
  • --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. fr fr, don't skip this step πŸ’€
  • -Y, --yaml β€” generate YAML output. yaml girlies, this one's for you 🌈
  • -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. that's the whole vibe check right there 🧚


πŸ” SEE ALSO πŸ”


πŸ‘‘ 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.


and that's the whole page bestie!! πŸ’œ this came from the oar_resources_add manual, dated 2025-03-24, and it lives with the rest of the OAR commands ✨ go forth and add your resources, you absolute icon πŸŽ€πŸ’–

πŸ“¦ where this page comes from