From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 271873858D28 for ; Thu, 5 Jan 2023 19:41:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 271873858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=simark.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=simark.ca Received: from [192.168.255.180] (unknown [207.35.41.250]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 7AB2F1E112; Thu, 5 Jan 2023 14:41:04 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1672947664; bh=ZjC+N17zqcBhjXVXYfzq6N8szr2a1cZKnvPSi6V1nRk=; h=Date:Subject:To:References:From:In-Reply-To:From; b=UvflqbgdRCMlcuGHYlNi81odYh18rJpxr1uQjBzDt86GSiU9ehr/hqubaR4JV/q4P Zvi1i75Eb+idZz5L88NiuEZaX9bI97on2z3ihUQbA/INCulZiPrIKwxGAyylxCDaOU UhUmQQYHLhf6HVDxU2nU9Mj1u5p0IskU7nQ7AKG4= Message-ID: Date: Thu, 5 Jan 2023 14:41:07 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH 00/12] Initial support for ROCm platform (AMDGPU) debugging To: Simon Marchi , gdb-patches@sourceware.org References: <20221206135729.3937767-1-simon.marchi@efficios.com> Content-Language: fr From: Simon Marchi In-Reply-To: <20221206135729.3937767-1-simon.marchi@efficios.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 12/6/22 08:57, Simon Marchi via Gdb-patches wrote: > This patch series adds initial support for debugging programs offloaded > to AMD GPUs using the ROCm platform. > > Patches 1 to 11 are preparatory patches, and patch 12 is the big one. > We included in that patch only what we consider to be the bare minimum > for a cohesive first step, something that can be run and tested. See > the commit message of patch 12 for more details. > > At the end of this series, it is possible to hit breakpoints in GPU code > and resume execution until the end of the program. Notably, GDB is not > able to compute the backtrace, which is of course an important piece to > do any real debugging. Supporting this will require GDB to support some > extensions to DWARF, which is a big piece in itself. This part, as well > as other features, will come as future patches. > > Patch 12 also contains documentation changes. This series was tested on > Ubuntu 22.04, and no regressions appear for x86-64 / Linux debugging > when and the AMDGPU / ROCm platform support is compiled in. > Built-tested with --enable-targets=all. > > Porting GDB to the ROCm platform brought up many challenges and has a > few interesting differences, compared to a "standard" CPU port. We did > a presentation at the 2022 Cauldron, in Prague, that explains some of > them: > > https://www.youtube.com/watch?v=X1iZ_Ta7jOo FYI, I pushed patches 5, 7, 8 and 9, since they seemed like good changes, independently from this series (and they were LGTM'ed by Andrew). Simon