[v2,2/3] gdb/testsuite/lib/rocm: Drop hip_devices_support_precise_memory

Message ID 20250321144618.363628-3-lancelot.six@amd.com
State New
Headers
Series gdb/testsuite/rocm: Dynamically determine if precise-memory is supported |

Commit Message

Lancelot SIX March 21, 2025, 2:46 p.m. UTC
  Remove hip_devices_support_precise_memory as this is not used anymore.

Change-Id: If5e19cf81f8b8778ee11b27d99b8488562804967
---
 gdb/testsuite/lib/rocm.exp | 19 -------------------
 1 file changed, 19 deletions(-)
  

Patch

diff --git a/gdb/testsuite/lib/rocm.exp b/gdb/testsuite/lib/rocm.exp
index 3eb51dbb52f..5164f1e1c88 100644
--- a/gdb/testsuite/lib/rocm.exp
+++ b/gdb/testsuite/lib/rocm.exp
@@ -176,22 +176,3 @@  proc hip_devices_support_debug_multi_process {} {
     }
     return 1
 }
-
-# Return true if all the devices on the host support precise memory.
-
-proc hip_devices_support_precise_memory {} {
-    set unsupported_targets \
-	{gfx900 gfx906 gfx908 gfx1010 gfx1011 gfx1012 gfx1030 gfx1031 gfx1032}
-
-    set targets [find_amdgpu_devices]
-    if { [llength $targets] == 0 } {
-	return 0
-    }
-
-    foreach target $targets {
-	if { [lsearch -exact $unsupported_targets $target] != -1 } {
-	    return 0
-	}
-    }
-    return 1
-}