git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Is offloading to GPU a worthwhile feature?

From
Jakub Narebski <jnareb@gmail.com>
Date
Apr 8, 2018, 13:59 UTC
Message-ID
<86k1thdck7.fsf@gmail.com>
In-Reply-To
<efc4af6b-53c9-bd02-65f6-9de517f6868e@linuxfoundation.org>
Hello,
Konstantin Ryabitsev <konstantin@linuxfoundation.org> writes:
Show 12 quoted lines
> This is an entirely idle pondering kind of question, but I wanted to
> ask. I recently discovered that some edge providers are starting to
> offer systems with GPU cards in them -- primarily for clients that need
> to provide streaming video content, I guess. As someone who needs to run
> a distributed network of edge nodes for a fairly popular git server, I
> wondered if git could at all benefit from utilizing a GPU card for
> something like delta calculations or compression offload, or if benefits
> would be negligible.
>
> I realize this would be silly amounts of work. But, if it's worth it,
> perhaps we can benefit from all the GPU computation libs written for
> cryptocoin mining and use them for something good. :)

The problem is that you need to transfer the data from the main memory (host memory) geared towards low-latency thanks to cache hierarchy, to the GPU memory (device memory) geared towards bandwidth and parallel access, and back again. So to make sense the time for copying data plus the time to perform calculations on GPU (and not all kinds of computations can be speed up on GPU -- you need fine-grained massively data-parallel task) must be less than time to perform calculations on CPU (with multi-threading).

Also you would need to keep non-GPU and GPGPU code in sync. Some parts of code do not change much; and there also solutions to generate dual code from one source.

Still, it might be good idea,
-- 
Jakub Narębski
Previous: Stefan BellerNext: Konstantin Ryabitsev
Message 3 of 5 in “Is offloading to GPU a worthwhile feature?”
  1. Konstantin RyabitsevFeb 27, 2018
  2. Stefan BellerFeb 27, 2018
  3. Jakub NarebskiApr 8, 2018
  4. Konstantin RyabitsevApr 9, 2018
  5. Jakub NarebskiApr 11, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.