Skip to content

Commit

Permalink
Change the name of the transform function for test api-400
Browse files Browse the repository at this point in the history
  • Loading branch information
thilinarmtb committed Dec 9, 2023
1 parent 4900535 commit 879b840
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/nomp-api-400-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ static int nomp_api_400_static_aux(const char *fmt, TEST_TYPE *b, TEST_TYPE *a,
TOSTRING(TEST_TYPE));

int id = -1;
const char *clauses[4] = {"transform", "nomp_api_400", "static", 0};
const char *clauses[4] = {"transform", "nomp_api_400", "transform", 0};
nomp_test_check(nomp_jit(&id, knl, clauses, 3, "b", sizeof(TEST_TYPE),
NOMP_PTR, "a", sizeof(TEST_TYPE), NOMP_PTR, "n",
sizeof(int), NOMP_INT));
Expand Down Expand Up @@ -76,7 +76,7 @@ static int nomp_api_400_dynamic_aux(const char *fmt, TEST_TYPE *b, TEST_TYPE *a,
TOSTRING(TEST_TYPE));

int id = -1;
const char *clauses[4] = {"transform", "nomp_api_400", "static", 0};
const char *clauses[4] = {"transform", "nomp_api_400", "transform", 0};
nomp_test_check(nomp_jit(&id, knl, clauses, 4, "b", sizeof(TEST_TYPE),
NOMP_PTR, "a", sizeof(TEST_TYPE), NOMP_PTR, "n",
sizeof(int), NOMP_INT, "m", sizeof(int),
Expand Down
2 changes: 1 addition & 1 deletion tests/nomp_api_400.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


# pylint: disable=unused-argument
def static(knl, context):
def transform(knl, context):
"""Tag `i` as global and `j*` as local."""
knl = lp.tag_inames(
knl,
Expand Down

0 comments on commit 879b840

Please sign in to comment.