This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] Target compilation for offloading
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Andrey Turetskiy <andrey dot turetskiy at gmail dot com>
- Cc: Ilya Verbin <iverbin at gmail dot com>, michael dot v dot zolotukhin at gmail dot com, Kirill Yukhin <kirill dot yukhin at gmail dot com>, Richard Henderson <rth at redhat dot com>, gcc at gcc dot gnu dot org
- Date: Thu, 7 Nov 2013 16:42:17 +0100
- Subject: Re: [RFC] Target compilation for offloading
- Authentication-results: sourceware.org; auth=none
- References: <CADB16ZApSvg2gMGJTDjQhDmEwxb1y4pyn-k16fhxiV7ZpW46=g at mail dot gmail dot com> <20131029094930 dot GW30970 at tucnak dot zalov dot cz> <CADB16ZCa62Y+wZMO0yMzXAxSNttOJG35Aydk6MxqPsLNYqD8Dw at mail dot gmail dot com> <CADB16ZCLqJW7LhBrb8rk0xpY7gCBp7_9WfxMo+mo5ZtW-Lq-ig at mail dot gmail dot com> <20131106140045 dot GB27813 at tucnak dot zalov dot cz> <CADB16ZBnheNNw_F2uGjfMnX-6tR6Es5DGjch4Kp1+tW_6=CtpA at mail dot gmail dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Thu, Nov 07, 2013 at 07:36:06PM +0400, Andrey Turetskiy wrote:
> > Note, configure options should be either --with- or --enable- prefixed.
> > Plus, it is probably better to use configuration triplets there.
>
> Do you mean smth like this:
> configure --build=x86 --host=x86 --target=x86,mic,ptx
> Then "make" should build 3 gcc: x86 native and crosses for mic and ptx.
It can very well be just that the user should first
mkdir ~/whatever-1; cd ~/whatever-1
.../configure --target x86_64-k1om-linux --prefix=/whatever
make; make install
mkdir ~/whatever-2; cd ~/whatever-2
.../configure --target ptx-none --prefix=/whatever
make; make install
and then
mkdir ~/whatever-3; cd ~/whatever-3
.../configure --with-offload-targets=x86_64-k1om-linux,ptx-none --prefix=/whatever
?
At least initially, because building several different compilers in one
build directory would be kind of interesting, I'm not saying not doable,
but there are other issues to be solved first.
Jakub