From bc492274e79ea20bd428c7d937e62abc984e7314 Mon Sep 17 00:00:00 2001 From: David Yat Sin Date: Thu, 16 Nov 2023 14:41:53 +0000 Subject: [PATCH] Increase min KFD version for Virtual mem support KFD had some fixes for handling of virtual memory APIs. These fixes are included in interface version 1.15. Change-Id: Ie701eccf6e032f9ec0a1f4e8a43718964eebddc6 [ROCm/ROCR-Runtime commit: d16c6db2ee6377bf0aa37b77c4b108fc1359f8d6] --- .../rocr-runtime/runtime/hsa-runtime/core/runtime/runtime.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/runtime.cpp b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/runtime.cpp index 61eabbd8e1..344e7bf9b4 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/runtime.cpp +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/runtime.cpp @@ -1722,12 +1722,12 @@ int Runtime::GetAmdgpuDeviceArgs(Agent* agent, amdgpu_bo_handle bo, int* drm_fd, void Runtime::CheckVirtualMemApiSupport() { virtual_mem_api_supported_ = false; - // TODO: May have to change the minor version required once Thunk merges changes into amd-staging + auto kfd_version = core::Runtime::runtime_singleton_->KfdVersion().version; if (kfd_version.KernelInterfaceMajorVersion > 1 || (kfd_version.KernelInterfaceMajorVersion == 1 && - kfd_version.KernelInterfaceMinorVersion >= 12)) { + kfd_version.KernelInterfaceMinorVersion >= 15)) { char* error; fn_amdgpu_device_get_fd =