[SDK] Fix null handles (#474)

* Fix null handle

- use .handle=0, not .handle=numeric_limits<>::max()

* Update lib.common.hasher

* Fix ROCPROFILER_CONTEXT_NONE

* Use context operator==

* Update CHANGELOG

* Updated null handle for scratch memory and changed allocation test so that free ops account for null agent

---------

Co-authored-by: Ian Trowbridge <Ian.Trowbridge@amd.com>
This commit is contained in:
Madsen, Jonathan
2025-07-18 12:05:52 -05:00
کامیت شده توسط GitHub
والد fcfb5bd918
کامیت 4d6a61f5e5
12فایلهای تغییر یافته به همراه75 افزوده شده و 50 حذف شده
@@ -324,8 +324,7 @@ get_next_dispatch()
return _v;
}
constexpr auto null_rocp_agent_id =
rocprofiler_agent_id_t{.handle = std::numeric_limits<uint64_t>::max()};
constexpr auto null_rocp_agent_id = rocprofiler_agent_id_t{.handle = 0};
struct memory_allocation_data
{