Skip to content

Commit

Permalink
Ufuncs: allow passing string for kokkos profiler kernel name for some…
Browse files Browse the repository at this point in the history
… ufuncs from npbench
  • Loading branch information
NaderAlAwar committed Aug 18, 2024
1 parent 5d645be commit 7e8a780
Show file tree
Hide file tree
Showing 3 changed files with 111 additions and 69 deletions.
4 changes: 2 additions & 2 deletions pykokkos/interface/parallel_dispatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def handle_args(is_for: bool, *args) -> HandledArgs:
workunit = unpacked[1]

elif len(unpacked) == 3:
if isinstance(unpacked[0], str):
if isinstance(unpacked[0], str) or unpacked[0] is None:
name = unpacked[0]
policy = unpacked[1]
workunit = unpacked[2]
Expand All @@ -66,7 +66,7 @@ def handle_args(is_for: bool, *args) -> HandledArgs:
raise TypeError(f"ERROR: wrong arguments {unpacked}")

elif len(unpacked) == 4:
if isinstance(unpacked[0], str):
if isinstance(unpacked[0], str) or unpacked[0] is None:
name = unpacked[0]
policy = unpacked[1]
workunit = unpacked[2]
Expand Down
Loading

0 comments on commit 7e8a780

Please sign in to comment.