This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC & OpenCL ?
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Andrey Belevantsev <abel at ispras dot ru>
- Cc: Michael Meissner <meissner at linux dot vnet dot ibm dot com>, Basile STARYNKEVITCH <basile at starynkevitch dot net>, GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Tue, 03 Feb 2009 08:48:13 -0800
- Subject: Re: GCC & OpenCL ?
- References: <498309EF.1080903@starynkevitch.net> <20090130215552.GA10981@hungry-tiger.westford.ibm.com> <49878876.7010400@codesourcery.com> <49886AE2.9070402@ispras.ru>
Andrey Belevantsev wrote:
> Obviously, a library is not enough for a heterogeneous system, or
> am I missing anything from your description? As I know, e.g. there is
> no device-independent bytecode in the OpenCL standard which such a
> backend could generate.
That's correct. I was envisioning a proper compiler that would take
OpenCL input and generate binary output, for a particular target, just
as with all other GCC input languages. That target might be a GPU, or
it might be a multi-core CPU, or it might be a single-core CPU.
Of course, OpenCL also specifies some library functionality; that could
be provided in a library that included hand-written assembly code, or
was generated by some non-GCC tool.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713