From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by sourceware.org (Postfix) with ESMTPS id 4A1B43858403 for ; Sat, 3 Feb 2024 18:15:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4A1B43858403 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=emailplus.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=emailplus.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4A1B43858403 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=66.111.4.28 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706984130; cv=none; b=kgvRrGYbCFwiN3yFafi6BO5nGcJC+MJe55fVD8Rpdf6hRpID4lSeAhuORUFLX/bAAyN0vTOge0EQxPO5PPXAsQWlYAf2vaFP6/LfBjOX04aFBf6TfLgxsw8tQJ9oz7iTWF0JfrdSPEWifKo3Phm11PpCTNgHWR4K/yO9E6Gyze0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706984130; c=relaxed/simple; bh=rZ+b6QQdoy/OY0JDQjue93AeIGsXmNY0vw3O/jvdcd8=; h=DKIM-Signature:DKIM-Signature:Message-ID:Date:MIME-Version:To: From:Subject; b=RvODapbyeAZsY1cIZXJsxzk+3rpk9NpMBPUnWHvVRQoIAjBeQu/SWgq+pP5X90OjTmizxHtw1e1o8w6s2OBANWTeSnMv23iENqzT8Nb4GHiY4hg4zODu4+tflC1qELyRWdsfkYk/Ap5XIVkHABjlmnC8NhQ7iBphq9pt2U2Hrco= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 342425C00A4; Sat, 3 Feb 2024 13:15:27 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sat, 03 Feb 2024 13:15:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emailplus.org; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm3; t=1706984127; x=1707070527; bh=ELs/wUcsgL8Wu0sAbDF1Eo7I2JMIGd2M +wUQ9siewdA=; b=j5aGQtESSMxCh1rtCZ7EJV54lcE+TDUCMnAXO4aiU9kKV/K3 HA7MSGoh7QRgK5KIN2+Etz65e4TzZOO4nN73DMp6zLw99oBmPRok69MhbAghzejr 6f7otzF3u0xvMWHvpSH3N46wwlL7kGG1DKzsavJ2TG2fDE8bC1Hco+TYkMmlT/Ta DUQJozxEQ9GsWtDKKT+rLgqWCY4TP/zgQgPS2TzPu3apjopm/ZFi1EgLw+NT5Wzu APij5V0zo9mjYlqfEkkBK+xo9r553mygqu24b6d137ix1WpMh3bJgvShoQ5B3Ev1 fSPDUy4UEwv9ZsLvDQinSg8r272qyrH8c+yu2Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1706984127; x= 1707070527; bh=ELs/wUcsgL8Wu0sAbDF1Eo7I2JMIGd2M+wUQ9siewdA=; b=i mOKEmCd34s2+ggk0Nw5bBS1fi5oHDpsy0OYe7sLn2U1c6BNsvD+a2lWy1fC+XABk XMSiPunRBNXqXRbBwaI7cpU1u4isbOJCDZam0JfPnzriSYijIiO6BWfXblEm3jtF hqyJZRdacWW+123Fb0LCV0ueh3JXOEsPWOtGR06+DC8qQjFyh4rp+WFF47vI/Pe/ W7nWjM22vSK62ZwR6O0ldC2UPf6nJz7OX9S00jWK2fnFjlObpkx+D30ENQM7fVKT a4ZiO2QHGUpRNrdv7zdhkTzTdY1Q30+PlH+lnLT/nAFU1KWWZIfm3Xhr19lE1gjN 4zXncSkSl5x/ON46+Cpwg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrfeduiedguddtkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfvfevfhfhufgjtgfgse htkeertddtfeejnecuhfhrohhmpeeuvghnshhonhcuofhuihhtvgcuoegsvghnshhonhgp mhhuihhtvgesvghmrghilhhplhhushdrohhrgheqnecuggftrfgrthhtvghrnhepjeelie ffgeeiiedvfeevleegjeeuveeugfduveevgeduvdetgefhgefhvdduhfetnecuffhomhgr ihhnpegrtggtvghsshdqtghirdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrg hrrghmpehmrghilhhfrhhomhepsggvnhhsohhnpghmuhhithgvsegvmhgrihhlphhluhhs rdhorhhg X-ME-Proxy: Feedback-ID: ic1e8415a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 3 Feb 2024 13:15:24 -0500 (EST) Message-ID: Date: Sat, 3 Feb 2024 21:15:21 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Content-Language: en-US To: sgk@troutmask.apl.washington.edu, Richard Biener Cc: fortran@gcc.gnu.org References: <29F25227-C186-4B29-BC4D-6DC5EA038A71@gmail.com> From: Benson Muite Subject: Re: GPU offloading question In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SCC_BODY_URI_ONLY,SPF_HELO_PASS,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no 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 03/02/2024 19.13, Steve Kargl wrote: > On Sat, Feb 03, 2024 at 02:37:05PM +0100, Richard Biener wrote: >> >>> Am 03.02.2024 um 01:22 schrieb Steve Kargl : >>> >>> All, >>> >>> Suppose one is working in a funding-constrained environment >>> such as an academician with limited grant funding. If one >>> wanted to dabble in GPU offloading with gcc/gfortran, what >>> recommendations would one have for minimum required hardware? >>> In addition, are there any vendor software layers that are >>> required (such as AMD ROCm with an AMD GPU)? >> >> You need the HSA runtime for AMD which comes with ROCm and libcuda >> for NvIDIA which comes with CUDA. > > Thanks. I'll need to check the level of support for the above > in FreeBSD. I suspect it's non-existent, so looks like I'll take > a plunge down the linux rabbit hole. > >> I’ve had success getting both a very low end gtx1650 and a high >> end rx6900xt running with simple offloading. The officially supported >> set of hardware is way bigger with CUDA when it comes to lower end cards. >> >> I can’t say anything about performance with regard to how GCC handles both. >> >> Note that double precision math performance is said to be severely >> constrained for consumer hardware. > > Ah, good point. I'll need to find a card I can afford that supports > double precision. > > Consider https://allocations.access-ci.org/resources for a PI based in the USA. Use the limited funding to support your time improving off loading support for GFortran.