From 59ee442a9c4cecda0565327f83de4398ac36d714 Mon Sep 17 00:00:00 2001 From: German Andryeyev Date: Tue, 23 Mar 2021 18:09:01 -0400 Subject: [PATCH] SWDEV-278346 - Replace assert with LogWarning() ROCr returns some unexpected values and for now just return invalid device back to the app Change-Id: Ia6fb709ed2dc77d77bd5d64de80b41b3720bed76 [ROCm/clr commit: 8c513407afc63a2a316d79e9b48d347aea70a85c] --- projects/clr/rocclr/device/rocm/rocdevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/clr/rocclr/device/rocm/rocdevice.cpp b/projects/clr/rocclr/device/rocm/rocdevice.cpp index 1736c905c0..5d9cfef9e5 100644 --- a/projects/clr/rocclr/device/rocm/rocdevice.cpp +++ b/projects/clr/rocclr/device/rocm/rocdevice.cpp @@ -2435,7 +2435,7 @@ bool Device::GetSvmAttributes(void** data, size_t* data_sizes, int* attributes, ++entry; break; default: - assert(!"Unexpected result from HSA_AMD_SVM_ATTRIB_ACCESS_QUERY"); + LogWarning("Unexpected result from HSA_AMD_SVM_ATTRIB_ACCESS_QUERY"); break; } }