Skip to content

Commit b09a4bf

Browse files
committed
make MAIA_HELP constant be private static
1 parent 7f38a3f commit b09a4bf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

aten/src/ATen/detail/MAIAHooksInterface.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
// NB: Class must live in `at` due to limitations of Registry.h.
1010
namespace at {
1111

12-
constexpr const char* MAIA_HELP =
13-
"Cannot initialize MAIA without ATen_maia library.";
14-
1512
struct TORCH_API MAIAHooksInterface : AcceleratorHooksInterface {
1613
// This should never actually be implemented, but it is used to
1714
// squelch -Werror=non-virtual-dtor
@@ -39,8 +36,12 @@ struct TORCH_API MAIAHooksInterface : AcceleratorHooksInterface {
3936
}
4037

4138
Allocator* getPinnedMemoryAllocator() const override {
42-
TORCH_CHECK(false, "Pinned memory requires MAIA. ");
39+
TORCH_CHECK(false, "Pinned memory requires MAIA.");
4340
}
41+
42+
private:
43+
static constexpr const char* MAIA_HELP =
44+
"Cannot initialize MAIA without ATen_maia library.";
4445
};
4546

4647
// NB: dummy argument to suppress "ISO C++11 requires at least one argument
@@ -54,5 +55,4 @@ TORCH_DECLARE_REGISTRY(MAIAHooksRegistry, MAIAHooksInterface, MAIAHooksArgs);
5455
namespace detail {
5556
TORCH_API const MAIAHooksInterface& getMAIAHooks();
5657
} // namespace detail
57-
5858
} // namespace at

0 commit comments

Comments
 (0)