Path: csiph.com!xmission!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end From: Hans-Peter Diettrich Newsgroups: comp.compilers Subject: Re: Parsing using a Graphics Processing Unit (GPU)? Date: Tue, 1 Sep 2020 19:02:21 +0200 Organization: Compilers Central Lines: 21 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <20-09-004@comp.compilers> References: <20-09-001@comp.compilers> <20-09-002@comp.compilers> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="3001"; mail-complaints-to="abuse@iecc.com" Keywords: parse Posted-Date: 01 Sep 2020 18:25:34 EDT X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com In-Reply-To: <20-09-002@comp.compilers> Xref: csiph.com comp.compilers:2575 Am 01.09.2020 um 09:22 schrieb Christian Gollwitzer: > Am 31.08.20 um 12:35 schrieb Roger L Costello: >> Has the parsing community found a way to take advantage of GPUs? > I have done some basic GPU programming, and I think that parsing is not > a parallel task in that sense. The parser reads the input as a stream of > tokens; and acts *differently* depending on that input, while a GPU performs essentially the *same* operation to all elements of a stream (merge, scale...). > you can't split the C file at some arbitrary point in half and > parse both parts independently. Multiple files can be parsed in parallel just with a multi-core CPU. More parallel modules require more symbol tables etc., what limits the amount of concurrent threads by available (cached!) memory. DoDi