LAMNODES(1)
π NAME π
lamnodes β bestie, this one resolves LAM node/CPU notation into actual Unix hostnames. no cap. β¨
π SYNOPSIS π
lamnodes [-chin] [where]
β¨ OPTIONS β¨
-cβ hush the CPU count for each node, don't print it.-hβ print the command help menu, iykyk.-iβ print IP addresses instead of IP names. switching it up fr fr.-nβ suppress printing CPU count for each node. like-cbut, you know,-n. π
π¦ DESCRIPTION π¦
okay so. the lamnodes command takes LAM's whole node/CPU nomenclature situation and resolves it into Unix hostnames. that's the vibe. it can also be your little detective for figuring out the current running configuration of the LAM/MPI run-time environment, and for generating a boot schema you can use to launch LAM later on. very main character energy honestly. π
by default, lamnodes prints out the node number, default IP name, CPU count, and per-node flags for every node in the running LAM. gethostbyaddr(3) is what grabs the default hostnames for you. and if gethostbyaddr(3) fails? no worries bestie, it just displays the IP number instead. π
setup shell scripts (and the like) can totally use this command to pull info out of a currently-running LAM universe. for example, use lamnodes to resolve particular CPUs and/or nodes to specific unix hostnames. and in a batch environment, lamnodes can tell you which CPUs share a common node β note that MPI_GET_PROCESSOR_NAME can be used for a similar effect inside an MPI program. slay. πΈ
lamnodes also shows per-node flags. currently defined flags are:
originβ the node wherelambootwas executed.this_nodeβ the node wherelamnodesis running. that's the one you're on, bestie. πno_scheduleβ this node will not be used to run MPI and serial processes whenNandCare used tompirunandlamexec.
π EXAMPLES π
lamnodes N -ndisplay IP names and CPU counts for all nodes. this output can be saved and later used withlamboot(1). iconic.lamnodes C -n -cdisplay the IP name of the nodes containing each CPU, and suppress the LAM node number and CPU count. this output can be saved and later used withlamboot(1). obsessed. β¨
π₯ SEE ALSO π₯
bhost(5), gethostbyaddr(3), lamboot(1)
ngl, this page is giving LAM 7.1.4, dated July, 2007, straight outta the LAM TOOLS corner of the group chat. periodt. ππ«Ά
π¦ where this page comes from
- debian bookworm: lam-runtime 7.1.4-7+b1
- debian trixie: lam-runtime 7.1.4-7.2
- ubuntu jammy: lam-runtime 7.1.4-7
- ubuntu noble: lam-runtime 7.1.4-7.1build2
- ubuntu questing: lam-runtime 7.1.4-8
- ubuntu resolute: lam-runtime 7.1.4-8build1
- ubuntu stonking: lam-runtime 7.1.4-8build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms