in cookbooks/aws-parallelcluster-slurm/files/default/head_node_slurm/slurm/config_renderer.py [0:0]
def _features(self, dynamic=False):
resource_type = "static"
if dynamic:
resource_type = "dynamic"
instance_type = f",{self.instance_types[0]}"
if len(self.instance_types) > 1:
# When multiple instance types are defined we do not know in advance which one will be used
# to launch the node. So we do not list any of them as feature
instance_type = ""
features = f"Feature={resource_type}{instance_type},{self.name}"
if self.efa_enabled:
features += ",efa"
if self.gpu_count > 0:
features += ",gpu"
return features