From c9b859307510b99fe71c1134f15e90a1d82b3857 Mon Sep 17 00:00:00 2001 From: Connor Radelja Date: Fri, 27 Sep 2024 17:10:09 -0700 Subject: [PATCH] Now 'gs' can be used to specify gather-scatter kernel Fixes: #217 --- src/Spatter/Input.hh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Spatter/Input.hh b/src/Spatter/Input.hh index 91d69ef..c0f596d 100644 --- a/src/Spatter/Input.hh +++ b/src/Spatter/Input.hh @@ -390,6 +390,10 @@ int parse_input(const int argc, char **argv, ClArgs &cl) { kernel = optarg; std::transform(kernel.begin(), kernel.end(), kernel.begin(), [](unsigned char c) { return std::tolower(c); }); + + // The gather-scatter kernel may be specified as 'gs' instead of 'sg' + if (kernel.compare("gs") == 0) + kernel = "sg"; if ((kernel.compare("gather") != 0) && (kernel.compare("scatter") != 0) && (kernel.compare("sg") != 0) && (kernel.compare("multigather") != 0) &&