rocr: Fix warnings

[ROCm/ROCR-Runtime commit: eb3d45d300]
이 커밋은 다음에 포함됨:
Yiannis Papadopoulos 작성하고 Yat Sin, David가 2025-07-21 12:55:46 -04:00를 커밋함
1 부모 b0866264b4
커밋 6ebc5bd4e4
2 파일이 변경됨
+3 -7

검색과 일치하는 파일 없음

-5
파일 보기
@@ -888,11 +888,6 @@ class Runtime {
const hsa_amd_memory_access_desc_t *desc,
const size_t desc_cnt);
// Frees runtime memory when the runtime library is unloaded if safe to do so.
// Failure to release the runtime indicates an incorrect application but is
// common (example: calls library routines at process exit).
friend class RuntimeCleanup;
void InitIPCDmaBufSupport();
bool ipc_dmabuf_supported_;
int IPCClientImport(uint32_t conn_handle, uint64_t dmabuf_fd_handle,
+3 -2
파일 보기
@@ -3194,10 +3194,11 @@ hsa_status_t Runtime::VMemoryAddressFree(void* va, size_t size) {
if (it->second.use_count > 0) return HSA_STATUS_ERROR_RESOURCE_FREE;
if (it->second.registered)
if (it->second.registered) {
if (HSAKMT_CALL(hsaKmtFreeMemory(it->second.os_addr, size)) != HSAKMT_STATUS_SUCCESS) return HSA_STATUS_ERROR;
else
} else {
if (munmap(it->second.os_addr, size)) return HSA_STATUS_ERROR;
}
reserved_address_map_.erase(it);
return HSA_STATUS_SUCCESS;