dragon.native.machine
The Dragon native machine interface provides hardware related functionality.
These calls return various hardware properties of the system(s), like the number of processors or a list of all nodes.
Functions
Return the number of CPUs in this system. |
|
|
Return a node object for this process. |
Classes
- cpu_count() int
Return the number of CPUs in this system.
- Returns:
integer representing the number of cpus
- class Node
Bases:
object
- property name: str
Return the Dragon name of this node. Use Node.hostname for the hostname.
- Returns:
The name of the node
- Return type:
- property num_cpus: int
Return the number of CPUs of this node.
- Returns:
The number of CPUs
- Return type:
- property physical_mem: int
Return the physical memory of this node.
- Returns:
Physical memory in bytes
- Return type:
- property gpu_vendor: str
Return the name of the GPU Vendor on this node
- Returns:
GPU vendor name
- Return type: