Node Resources Module

This module for detects and returns intranode resources

node_resources.get_cpu_cores(hyperthreads=False)

Returns the number of cores on the node.

If hyperthreads is true, this is the logical CPU cores; else the physical cores are returned.

Note: This returns cores available on the current node. It will not work for systems of multiple node types

node_resources.get_sub_node_resources(launcher=None, remote_mode=False, env_resources=None)

Returns logical and physical cores per node as a tuple