public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v2 0/5] Fix gdb.rocm/simple.exp on hosts without ROCm
@ 2023-02-09 11:26 Lancelot SIX
  2023-02-09 11:26 ` [PATCH v2 1/5] gdb: 'show config' shows --with[out]-amd-dbgapi Lancelot SIX
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Lancelot SIX @ 2023-02-09 11:26 UTC (permalink / raw)
  To: gdb-patches; +Cc: lsix, Lancelot SIX

Hi, this is a V2 for https://sourceware.org/pipermail/gdb-patches/2023-February/196653.html.

Changes since V1:

- Fixed a typo in patch 1
- Removed the un-necessary "expr" call in patch 3
- Added patch 5 so both hipcc and rocm_agent_enumerator are searched in
  a consistent way

Best,
Lancelot.

Hi,

Tom De Vries reported that the gdb.rocm/simple.exp test (recently introduced
with the AMDGPU support) can fails[1].  I can reproduce this problem
(and variations of it) on systems where GDB is not build with the AMDGPU
support, or which do not have the ROCm stack installed.

This series fixes this test failure by only running the test if:
- GDB is build with AMDGPU support (patch 1 and 3)
- if the hipcc compiler is installed and can compile a simple HIP
  program which offloads a task to an AMDGPU device (patch 4).

Patch 2 is a small refactoring to use "require" in gdb.rocm/*.exp.

Patch 5 ensures that both hipcc (the hip compiler) and
rocm_agent_enumerator (the tool to list AMDGPU devices) are searched in
a consistent way.

All feedbacks are welcome.

Best,
Lancelot.

[1] https://sourceware.org/pipermail/gdb-patches/2023-February/196624.html

Lancelot SIX (5):
  gdb: 'show config' shows --with[out]-amd-dbgapi
  gdb/testsuite: Rename skip_hipcc_tests to allow_hipcc_tests
  gdb/testsuite: require amd-dbgapi support to run rocm tests
  gdb/testsuite: allow_hipcc_tests tests the hipcc compiler
  gdb/testsuite: look for hipcc in env(ROCM_PATH)

 gdb/config.in                     |  3 ++
 gdb/configure                     |  3 ++
 gdb/configure.ac                  |  1 +
 gdb/testsuite/gdb.rocm/simple.exp |  5 +-
 gdb/testsuite/lib/future.exp      |  7 ++-
 gdb/testsuite/lib/gdb.exp         |  4 ++
 gdb/testsuite/lib/rocm.exp        | 80 +++++++++++++++++++++++++++++--
 gdb/top.c                         | 10 ++++
 8 files changed, 104 insertions(+), 9 deletions(-)


base-commit: c920e5cc604c5b20f9af7c75402eea94aa1e11c6
-- 
2.34.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-02-13  9:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-09 11:26 [PATCH v2 0/5] Fix gdb.rocm/simple.exp on hosts without ROCm Lancelot SIX
2023-02-09 11:26 ` [PATCH v2 1/5] gdb: 'show config' shows --with[out]-amd-dbgapi Lancelot SIX
2023-02-09 11:26 ` [PATCH v2 2/5] gdb/testsuite: Rename skip_hipcc_tests to allow_hipcc_tests Lancelot SIX
2023-02-09 11:26 ` [PATCH v2 3/5] gdb/testsuite: require amd-dbgapi support to run rocm tests Lancelot SIX
2023-02-09 11:26 ` [PATCH v2 4/5] gdb/testsuite: allow_hipcc_tests tests the hipcc compiler Lancelot SIX
2023-02-09 11:26 ` [PATCH v2 5/5] gdb/testsuite: look for hipcc in env(ROCM_PATH) Lancelot SIX
2023-02-10 19:52 ` [PATCH v2 0/5] Fix gdb.rocm/simple.exp on hosts without ROCm Simon Marchi
2023-02-13  9:53   ` Lancelot SIX

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).