Automatically get cores_per_node
on single node
#357
Merged
cores_per_node
on single node
#357