From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by sourceware.org (Postfix) with ESMTPS id 8138C3858404 for ; Sat, 3 Feb 2024 13:37:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8138C3858404 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8138C3858404 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::235 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706967443; cv=none; b=CaWyRccPSbQw4gapW5aKVduxQ2yMjOk2zCF4qb6nglJIQwGwKmEBa5x4DsJOa5nvLSpZ9Y0PeeWrixRdqgai7EPo9hcWEDtNBPS3vPxRMxHzYDMFc8TnCVcBiNZy3OfzuEerkkxYax68vaJ70ZS3meQZGMIUX0Eq6J/jn8PBbkc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706967443; c=relaxed/simple; bh=3mQhI3cpP0yLuZJkm++xdK9wJj0GnECo3jV0zj5O3ns=; h=DKIM-Signature:From:Mime-Version:Subject:Date:Message-Id:To; b=bymDJhYw1PZXub+aY67mX25tZaZ4MwEk8zzkPnwE1A+jqiRceRIJMGGrC/yy86XVHDgw1Jon68Tuzc7LI8ocuHEVzNBXWOTP2jUdiJ6Gxyz+QtCZmLyroRhnFt9XU+54PuWyOu6INyVVUnQTgvf4M1DDXNIe3RfS9TRX5SRm598= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2d066b82658so42616101fa.3 for ; Sat, 03 Feb 2024 05:37:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706967437; x=1707572237; darn=gcc.gnu.org; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:from:to:cc:subject:date:message-id :reply-to; bh=HytvlgtBXMi/mpQSAl+i3p06QnyERVGqTWF6KyZeSv0=; b=ac07ACBoVhspBJMguPJC1p7T2pAYiEbZ4762AFXTp/PW+RwOFTpt2pVp75fW0A1yvz 8b90tFeok535aM9jyqdZtHS/Kdi7nLcKAONialqfTZUliOTwTIZCEbzOCaB1l0DbBnA8 HePecFhmcccZ4YJRSI7lRMlTctLEz2bcVcDwg4V3noIZ5cM7NKnun39E8PmiAuwVvFxo s3A42rNM6eYE1FSAkv+4UB7EANoSFEEtynh3kILzppVW/0Cwcca9QaKRm5ODmHUC1CAj rqeiJab/e1iA/hIf35xYTU/Uy4N6ugXQkfTfsP77h2wF/ktalCCOATrL0VVcEZRcUvZn 5khQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706967437; x=1707572237; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HytvlgtBXMi/mpQSAl+i3p06QnyERVGqTWF6KyZeSv0=; b=BT7EiLx4ovnv8gziysNYAvInw/BVrRCw2RxEPxmh7H3JeADF4AEwQo34x3vIUHIWaa OEhkYfySDNEgcA4nbIxkYZLXOWOFzuugFgsPRLt0EQyXfziIZrVb2JD1+OZ3OA3/L0bn qiKfCXl+XmkB965Av7s+12SnN6ULkA8v6xoeBtRkXdm3Ss2T0qFNuzRHYWluVUTXV4dN GR68XXNZJGJDq3hsAWNrgpB+mf2DVhi49sPFwmMEgr65odRgDN02bmHm618X+FSNNdsN 3RoxruifB7wktWY5VG3mSFKrvn6IyupOKNwwu8nNyyYTWhvQxuG+TO6szWUhTY0j5evk JK3A== X-Gm-Message-State: AOJu0Yxmrrt9VN+lrljYHVDCQmxvOfHLyWaouFyzzHrYWcBpUnXcdI+Z zsnJ1OszFbdDoGu/ifk1OpkUCNrzwGwTCU5ERlAX2/3fbNBuOiobh+hlJTXA X-Google-Smtp-Source: AGHT+IGSFaIzOGquuHtzigY8c5Ni9DwJmoQTcNx9ofqoTOpoHlqqLBRhDrwOavGoAGI77AMvfKPJmw== X-Received: by 2002:a2e:be87:0:b0:2d0:9344:a0d2 with SMTP id a7-20020a2ebe87000000b002d09344a0d2mr2182949ljr.42.1706967436601; Sat, 03 Feb 2024 05:37:16 -0800 (PST) Received: from smtpclient.apple (dynamic-095-118-110-069.95.118.pool.telefonica.de. [95.118.110.69]) by smtp.gmail.com with ESMTPSA id x4-20020a056402414400b0055ff68cce5asm1451419eda.27.2024.02.03.05.37.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 03 Feb 2024 05:37:16 -0800 (PST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Richard Biener Mime-Version: 1.0 (1.0) Subject: Re: GPU offloading question Date: Sat, 3 Feb 2024 14:37:05 +0100 Message-Id: <29F25227-C186-4B29-BC4D-6DC5EA038A71@gmail.com> References: Cc: fortran@gcc.gnu.org In-Reply-To: To: sgk@troutmask.apl.washington.edu X-Mailer: iPhone Mail (21D50) X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 List-Id: > Am 03.02.2024 um 01:22 schrieb Steve Kargl : >=20 > =EF=BB=BFAll, >=20 > 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 NvIDI= A which comes with CUDA. I=E2=80=99ve had success getting both a very low e= nd gtx1650 and a high end rx6900xt running with simple offloading. The offi= cially supported set of hardware is way bigger with CUDA when it comes to lo= wer end cards. I can=E2=80=99t say anything about performance with regard to how GCC handle= s both. Note that double precision math performance is said to be severely constrain= ed for consumer hardware. Richard=20 >=20 > -- > Steve