From 954236bd8e71fbdf88f51800f083038fd1f9257b Mon Sep 17 00:00:00 2001 From: Jan Eitzinger Date: Tue, 18 Oct 2022 07:32:34 +0200 Subject: [PATCH] Fix issue for a non gpu system --- configs/generate-subcluster.pl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/configs/generate-subcluster.pl b/configs/generate-subcluster.pl index 51fd2cc..171db92 100755 --- a/configs/generate-subcluster.pl +++ b/configs/generate-subcluster.pl @@ -1,10 +1,12 @@ #!/usr/bin/env perl + use strict; use warnings; use utf8; my %INFO; my %DOMAINS; + my $SMT; my $numMemoryDomains; $DOMAINS{socket} = []; @@ -198,8 +200,11 @@ END $INFO{gpus} .= join(",\n",@gpuStr); $INFO{gpus} .= "]\n"; +} else { + $INFO{gpus} = ''; } + print <<"END"; { "name": "", @@ -219,10 +224,10 @@ print <<"END"; "memoryDomain": [ $INFO{memoryDomains} ], - $INFO{gpus} "core": [ - $INFO{cores} + $INFO{cores} ] + $INFO{gpus} } } END