mirror of
https://github.com/NVIDIA/nvbench.git
synced 2026-04-20 06:48:53 +00:00
Make device_info sortable.
This commit is contained in:
@@ -181,6 +181,10 @@ struct device_info
|
||||
return m_prop;
|
||||
}
|
||||
|
||||
[[nodiscard]] bool operator<(const device_info &o) const
|
||||
{
|
||||
return m_id < o.m_id;
|
||||
}
|
||||
[[nodiscard]] bool operator==(const device_info &o) const
|
||||
{
|
||||
return m_id == o.m_id;
|
||||
|
||||
Reference in New Issue
Block a user