Skip to content

Commit

Permalink
Now 'gs' can be used to specify gather-scatter kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
radelja committed Sep 28, 2024
1 parent 10ec92d commit c9b8593
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Spatter/Input.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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) &&
Expand Down

0 comments on commit c9b8593

Please sign in to comment.