From c4268f9e765277046c544adaf343122d70745d99 Mon Sep 17 00:00:00 2001 From: "Yount, Chuck" Date: Thu, 19 Jan 2023 13:39:19 -0800 Subject: [PATCH 1/2] Enable HBW policy --- src/common/common_utils.cpp | 4 ++-- src/kernel/yask.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/common_utils.cpp b/src/common/common_utils.cpp index a87bfcbd..d174807e 100644 --- a/src/common/common_utils.cpp +++ b/src/common/common_utils.cpp @@ -44,7 +44,7 @@ namespace yask { // for numbers above 9 (at least up to 99). // Format: "major.minor.patch[-alpha|-beta]". - const string version = "4.01.01"; + const string version = "4.01.02"; string yask_get_version_string() { return version; @@ -83,7 +83,7 @@ namespace yask { else if (num > one_ki) os << (num / one_ki) << "Ki"; else - os << num; + os << nbytes; os << "B"; return os.str(); } diff --git a/src/kernel/yask.sh b/src/kernel/yask.sh index 87796f56..31f16ed0 100755 --- a/src/kernel/yask.sh +++ b/src/kernel/yask.sh @@ -39,7 +39,7 @@ done envs="OMP_DISPLAY_ENV=VERBOSE KMP_VERSION=1" envs+=" OMP_PLACES=cores KMP_HOT_TEAMS_MODE=1 KMP_HOT_TEAMS_MAX_LEVEL=3" envs+=" I_MPI_PRINT_VERSION=1 I_MPI_DEBUG=5" -#envs+=" I_MPI_HBW_POLICY=hbw_preferred,hbw_preferred" +envs+=" I_MPI_HBW_POLICY=hbw_preferred,hbw_preferred" # Default arch. cpu_flags=`grep -m1 '^flags' /proc/cpuinfo` From 0c02d571c876e0cddfbb1bad6717ceeb155856e1 Mon Sep 17 00:00:00 2001 From: "Yount, Chuck" Date: Thu, 19 Jan 2023 13:40:09 -0800 Subject: [PATCH 2/2] Fix bug where a macro wasn't the first thing on a line. --- utils/bin/gen_loops.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/bin/gen_loops.pl b/utils/bin/gen_loops.pl index 5e4ccbc9..9173be04 100755 --- a/utils/bin/gen_loops.pl +++ b/utils/bin/gen_loops.pl @@ -1189,7 +1189,7 @@ ($) " * Generated automatically from the following pseudo-code:\n", " *\n", " * $codeString\n", - " *\n */"; + " *\n */\n\n"; # print out code. for my $line (@code) {