Skip to content

Commit

Permalink
incorporate review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
apwojcik committed May 27, 2024
1 parent 6ec5a5e commit 31459c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/include/migraphx/register_target.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ struct register_target_action
}
};

template <class T>
using auto_register_target = auto_register<register_target_action, T>;

#define MIGRAPHX_REGISTER_TARGET(...) MIGRAPHX_AUTO_REGISTER(register_target_action, __VA_ARGS__)

} // namespace MIGRAPHX_INLINE_NS
Expand Down
2 changes: 2 additions & 0 deletions src/register_target.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ std::unordered_map<std::string, target>& target_map()
return m;
}

void register_target_init() { (void)target_map(); }

void unregister_target(const std::string& name)
{
assert(target_map().count(name));
Expand Down

0 comments on commit 31459c7

Please sign in to comment.