Skip to content

Commit

Permalink
run clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriele Merlo committed Sep 17, 2024
1 parent 4984136 commit 42f1ee3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/gtensor/backend_hip.h
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,9 @@ class backend_ops<gt::space::hip>
}
gtGpuCheck(rval);
#if HIP_VERSION_MAJOR >= 6
return (attr.type == hipMemoryTypeDevice || attr.isManaged);
return (attr.type == hipMemoryTypeDevice || attr.isManaged);
#else
return (attr.memoryType == hipMemoryTypeDevice || attr.isManaged);
return (attr.memoryType == hipMemoryTypeDevice || attr.isManaged);
#endif
}

Expand Down Expand Up @@ -291,7 +291,7 @@ class backend_ops<gt::space::hip>
#if HIP_VERSION_MAJOR >= 6
fprintf(stderr, "ERROR: unknown memoryType %d.\n", attr.type);
#else
fprintf(stderr, "ERROR: unknown memoryType %d.\n", attr.memoryType);
fprintf(stderr, "ERROR: unknown memoryType %d.\n", attr.memoryType);
#endif
std::abort();
}
Expand Down

0 comments on commit 42f1ee3

Please sign in to comment.