From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id 130B43858024 for ; Wed, 6 Jul 2022 00:04:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 130B43858024 Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 26603jHV029094 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 5 Jul 2022 20:03:50 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 26603jHV029094 Received: from [10.0.0.11] (192-222-157-6.qc.cable.ebox.net [192.222.157.6]) (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 50C361E15C; Tue, 5 Jul 2022 20:03:45 -0400 (EDT) Message-ID: <6ed0cfa1-a3bb-f7bc-54d0-bb2abb6b11d4@polymtl.ca> Date: Tue, 5 Jul 2022 20:03:44 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: Is there any information about gpu debugging? Content-Language: en-US To: =?UTF-8?B?5aW9?= , gdb@sourceware.org References: <62b767e7.d30.181cbe55427.Coremail.swdtian@163.com> From: Simon Marchi In-Reply-To: <62b767e7.d30.181cbe55427.Coremail.swdtian@163.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Wed, 6 Jul 2022 00:03:45 +0000 X-Spam-Status: No, score=-3032.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jul 2022 00:04:02 -0000 On 2022-07-04 21:06, 好 via Gdb wrote: > Hi, Is this the channel for raising questions? Hi, yes. > I have been very interested in gdb recently. I want to develop a set > of gdb that supports GPU debugging, but I don't know where to start. What do you mean by "a set of gdb"? > Do you have any good suggestions? What is the difference between AMD's > ROCGDB and NVIDIA's cuda-gdb and GDB? Is there any information? Cuda-gdb and ROCgdb are two separate forks of GDB, made to debug Cuda and ROCm programs respectively. They are not interchangeable, as they are both designed to debug programs running on their respective platforms. They currently both reside outside of the upstream GDB tree. I can't speak for Nvidia, but AMD intends on (and is actively working on) contributing ROCgdb to upstream gdb. So in some not too distant future, it should be possible to debug ROCm programs with an upstream GDB build. I am not sure what kind of differences between the two you are after, so feel free to ask further questions. Simon