Re: GPU-aware compiling?

Rob Dimond <>
24 May 2005 10:18:02 -0400

          From comp.compilers

Related articles
GPU-aware compiling? (Tomasz Chmielewski) (2005-05-20)
Re: GPU-aware compiling? (Michael Tiomkin) (2005-05-22)
Re: GPU-aware compiling? (Oleg V.Boguslavsky) (2005-05-22)
Re: GPU-aware compiling? ( (2005-05-24)
Re: GPU-aware compiling? (Rob Dimond) (2005-05-24)
Re: GPU-aware compiling? (2005-05-24)
Re: GPU-aware compiling? (Ray Dillinger) (2005-06-26)
Re: GPU-aware compiling? (Julian Stecklina) (2005-07-02)
| List of all articles for this month |

From: Rob Dimond <>
Newsgroups: comp.compilers
Date: 24 May 2005 10:18:02 -0400
Organization: Department of Computing, Imperial College, London
References: 05-05-184
Keywords: architecture
Posted-Date: 24 May 2005 10:18:02 EDT

Tomasz Chmielewski wrote:

> Like now we have compiler options like "-mmmx -msse -msse2 -msse3 >
-m3dnow" - would it be possible to optimize the code of the binary to
> use the GPU with "-with-nvidia-gpu" or "-with-ati-gpu"?

Modern GPU's are SIMD processors that execute the same program on
multiple data-elements (e.g. vertices or pixels) in parallel.

Restructuring compilers are able to extract such parallelism from loop
nests by dependence analysis (determining which loop interations are
independent) and loop transformations (re-ordering iterations while
preserving the program operation). In addition, you would need to
partition the code between CPU and GPU and handle communication of
data between the two.

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.