[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>
[ROCm/rocprofiler-sdk commit: 4d6a61f5e5]
Šī revīzija ir iekļauta:
1 vecāks
483a10f53a
revīzija
990946e956
12 files changed
+75
-50
No files matched your search
@@ -38,7 +38,7 @@ ROCPROFILER_EXTERN_C_INIT
|
||||
/**
|
||||
* The NULL Context handle.
|
||||
*/
|
||||
#define ROCPROFILER_CONTEXT_NONE ROCPROFILER_HANDLE_LITERAL(rocprofiler_context_id_t, UINT64_MAX)
|
||||
#define ROCPROFILER_CONTEXT_NONE ROCPROFILER_HANDLE_LITERAL(rocprofiler_context_id_t, 0UL)
|
||||
|
||||
/**
|
||||
* @brief Create context.
|
||||
|
||||
Reference in new issue
Block a user