From nobody Mon Feb 5 02:06:20 2024 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TSqWW0jNMz58q8H for ; Mon, 5 Feb 2024 02:07:03 +0000 (UTC) (envelope-from estrabd@gmail.com) Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TSqWV5ybWz4rcl for ; Mon, 5 Feb 2024 02:07:02 +0000 (UTC) (envelope-from estrabd@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2d066b532f0so62513071fa.1 for ; Sun, 04 Feb 2024 18:07:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707098818; x=1707703618; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=1QR7eJEc7jPBtE3ViVLfwUSMK2Q917pSDot/WS22j8E=; b=RPOn4nrzLxzQIgQ3AMw3Lu/fxFwQMt3/KccFnEuc2E7wdiLOUlDRz2T1uHzpL2ZQVB awQWn/ynYI10pQ6gUsDXr/26QF6/VCegdoENfHT2oZ9xInghvzN6pXQoTPHiWSN9Qmrr iRzmAK+R+ye146xvF8ot1E+fdHIBZtWKsB19x/yTCFrELm0uSHbbfiWlu5QaVwubCE0a YVxI3yXmZ6dkDClz51ZlTCmbMHzuCapjGuDQWOS7NVGx6RAfPLiLCF2RTXx5XWWb943G G822V5Uf2i4Aubd0NxzUasiO3b6gY3nWX0fbwc7gOp/XSPN9P1tchMtazvCpFaP0/beo 9/9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707098818; x=1707703618; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1QR7eJEc7jPBtE3ViVLfwUSMK2Q917pSDot/WS22j8E=; b=euPGVfEl7B/J8gW6+SLRKivIsJWzeoSLUkcplqY4Vu2YitSLeyv8BfjCzCprYP1rIt YMhG2g5KLTLUBpMcOZeuJpLNfrsIm8TXv1MRoU/wwrp9hehnDsiwc387QJqwydLYf+in NciEnjlWswRFPhSiHBMCLaDtHuNIYkh0I+7SzmrMOJgKBG8LR9PpIwCcXJT+fob4r7DL OQwMOCof2yLCdYNuXcKYoppAZmnp/vdQ9FGEwwwNO+HM0619b7z38YU6V3FlnLRKnAGk ilxLySo/kx2AyFNBY1gCHqObskSTa3rsBPshUcVV3QOpG7jpndr7hZbLacwrcn+rP0lQ bkKA== X-Gm-Message-State: AOJu0Yxob8KEXu+3L3GIMvrSpCAZvLo6HVO14LadUGJ0F6OIzbRammUE nhlXDrCtGGYMdNA0efZVNvnPYxo36bBDQsK0OebfdZ/BsuHr5ty9+Q57ay4MDlzwc+V1t9NyX0Z ZY6o8GyzwKFEs54Slahe8uddYEncpofCfeEk= X-Google-Smtp-Source: AGHT+IHMlkrnfARtjluqxUrf0/q9gJkoVjA8dCAGwVW90c/7uJg1mGArxps2oCmumXcCkl3ZAC+ZJu+3WbmCF4RRUwo= X-Received: by 2002:a05:651c:2108:b0:2d0:ab46:77db with SMTP id a8-20020a05651c210800b002d0ab4677dbmr1063738ljq.50.1707098817263; Sun, 04 Feb 2024 18:06:57 -0800 (PST) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: "B. E." Date: Sun, 4 Feb 2024 20:06:20 -0600 Message-ID: Subject: Re: GPU programming? To: sgk@troutmask.apl.washington.edu Cc: freebsd-hackers@freebsd.org Content-Type: multipart/alternative; boundary="000000000000997b4c061098ea2d" X-Rspamd-Queue-Id: 4TSqWV5ybWz4rcl X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] --000000000000997b4c061098ea2d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sorry, I guess I was not clear on what you were asking. Maybe OpenCL (from Kronos/OpenGL folks) is helpful. Good luck. https://www.freshports.org/devel/opencl/ Cheers, Brett On Sun, Feb 4, 2024 at 2:51=E2=80=AFPM Steve Kargl wrote: > See the second paragraph of my initial post. AMD provides > ROCm and Nvidia supplies CUDA. These appear to be available > for Windows and Linux. Are there any software/hardware drivers > required to actually accomplish the offloading? > > -- > steve > > > > On Sun, Feb 04, 2024 at 02:16:05PM -0600, B. E. wrote: > > gcc (and gfortran) has supported OpenMP for a very long time via their > GOMP > > (pthreads underneath), not sure about LLVM based support or offloading > (via > > the latest supported OpenMP specification) to accelerators on FreeBSD p= er > > se. What are you looking for in terms of OS support? > > > > Cheers, > > Brett > > > > On Sun, Feb 4, 2024 at 1:02=E2=80=AFPM Steve Kargl < > sgk@troutmask.apl.washington.edu> > > wrote: > > > > > Is anyone aware of work towards GPU programming on FreeBSD? > > > > > > Here, I am not interested in using a GPU while playing a > > > video game or rendering graphics on a video monitor. I'm > > > interested in offloading single and double precision > > > floating-point computations to a GPU via OpenACC or OpenMP > > > (ala HPC). > > > > > > Although using a high-end AMD Instinct MI300 would be great, > > > I'm looking for something a bit more affordable such as an > > > AMD RX 6700 XT. AFAICT, this may require either porting > > > AMD ROCm software to FreeBSD or running it under the > > > linuxlator. > > > > > > https://www.amd.com/en/products/software/rocm.html > > > > > > -- > > > Steve > > > > > > > > -- > Steve > > --000000000000997b4c061098ea2d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Sorry, I guess I was not clear on what you were asking. Ma= ybe OpenCL (from Kronos/OpenGL folks) is helpful. Good luck.

=
On Sun, Feb 4, 2024 at 2:51=E2=80=AFPM Steve Kargl <sgk@troutmas= k.apl.washington.edu> wrote:
See the second paragraph of my initial post.=C2=A0 AMD = provides
ROCm and Nvidia supplies CUDA.=C2=A0 These appear to be available
for Windows and Linux.=C2=A0 Are there any software/hardware drivers
required to actually accomplish the offloading?

--
steve



On Sun, Feb 04, 2024 at 02:16:05PM -0600, B. E. wrote:
> gcc (and gfortran) has supported OpenMP for a very long time via their= GOMP
> (pthreads underneath), not sure about LLVM based support or offloading= (via
> the latest supported OpenMP specification) to accelerators on FreeBSD = per
> se. What are you looking for in terms of OS support?
>
> Cheers,
> Brett
>
> On Sun, Feb 4, 2024 at 1:02=E2=80=AFPM Steve Kargl <sgk@troutmask.apl.wa= shington.edu>
> wrote:
>
> > Is anyone aware of work towards GPU programming on FreeBSD?
> >
> > Here, I am not interested in using a GPU while playing a
> > video game or rendering graphics on a video monitor.=C2=A0 I'= m
> > interested in offloading single and double precision
> > floating-point computations to a GPU via OpenACC or OpenMP
> > (ala HPC).
> >
> > Although using a high-end AMD Instinct MI300 would be great,
> > I'm looking for something a bit more affordable such as an > > AMD RX 6700 XT.=C2=A0 AFAICT, this may require either porting
> > AMD ROCm software to FreeBSD or running it under the
> > linuxlator.
> >
> > https://www.amd.com/en/products/software= /rocm.html
> >
> > --
> > Steve
> >
> >

--
Steve

--000000000000997b4c061098ea2d--