From 793dbf5bd58e58ee65a71f311c2d17a0cf9654ef Mon Sep 17 00:00:00 2001 From: Tao Sang Date: Wed, 22 Apr 2020 15:16:59 -0400 Subject: [PATCH] Fix hip_get_devices failure in lammps Support hipDeviceAttributeIntegrated in hipDeviceGetAttribute() with hip-vdi rt Change-Id: Ie5ba81222af3554a843c184ae75af7f369a3c24b --- vdi/hip_device_runtime.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vdi/hip_device_runtime.cpp b/vdi/hip_device_runtime.cpp index 4cd6731824..86a1590533 100644 --- a/vdi/hip_device_runtime.cpp +++ b/vdi/hip_device_runtime.cpp @@ -239,6 +239,9 @@ hipError_t hipDeviceGetAttribute(int* pi, hipDeviceAttribute_t attr, int device) case hipDeviceAttributeCooperativeMultiDeviceLaunch: *pi = prop.cooperativeMultiDeviceLaunch; break; + case hipDeviceAttributeIntegrated: + *pi = prop.integrated; + break; case hipDeviceAttributeMaxTexture1DWidth: *pi = prop.maxTexture1D; break;