From nobody Sun Feb 4 20:51:27 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 4TShWP534Rz58mXt for ; Sun, 4 Feb 2024 20:51:29 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4TShWP3sljz4FZk for ; Sun, 4 Feb 2024 20:51:29 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Authentication-Results: mx1.freebsd.org; none Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.17.1/8.17.1) with ESMTP id 414KpRDp026646; Sun, 4 Feb 2024 12:51:27 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) DKIM-Filter: OpenDKIM Filter v2.10.3 troutmask.apl.washington.edu 414KpRDp026646 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=troutmask.apl.washington.edu; s=troutmask; t=1707079887; bh=ISg8xgQhILlc2YQCUGnKwJh/P3nNeUtVHcPE9TXwZUc=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=M8B1oaRBpZtxtVXYR0Ck++kEmDvHfBfeH7sZtfA7H1jIO0WnzBFL5hGmlR+b2pZfq Kld82xZIC700ugvbjjSy32Ws9yDnmni4DH/lLcUBMwGWfiQYmH4HRGOwUbopBjkMvK ii/qaN+ac+rZ7G6s26xLYAHYSas3xEXfIO/FsNXo+16OlN+NvR0EJMV+KMvDi5ETbb MSWP/gH5iWgdy46KrtzEGnEYWTlI9uA3HrY+VzLcqEnv4gIiIKHOiYo6PneWwNOnc4 NclytwpHumim50LbI1WveWGIudATQurGgx/H7sT9XyaswH5cz1CA5/IcWHOe84N+o2 1kZzw8DB5cKIA== Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.17.1/8.17.1/Submit) id 414KpRRN026645; Sun, 4 Feb 2024 12:51:27 -0800 (PST) (envelope-from sgk) Date: Sun, 4 Feb 2024 12:51:27 -0800 From: Steve Kargl To: "B. E." Cc: freebsd-hackers@freebsd.org Subject: Re: GPU programming? Message-ID: Reply-To: sgk@troutmask.apl.washington.edu References: 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 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Rspamd-Queue-Id: 4TShWP3sljz4FZk 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:73, ipnet:128.95.0.0/16, country:US] 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 per > se. What are you looking for in terms of OS support? > > Cheers, > Brett > > On Sun, Feb 4, 2024 at 1:02 PM Steve Kargl > 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