[PATCH 1/n] OpenMP 4.0 offloading infrastructure

2014-09-11 Thread Ilya Verbin
Hello, I would like to start merging offloading-related patches from gomp-4_0-branch to trunk. This is the first patch (from r202620), which adds a splay tree and memory mapping to libgomp. I removed temporarily device 257 from it. Bootstrapped and regtested on x86_64-linux. 2014-09-11 Jakub

[PATCH 1/n] OpenMP 4.0 offloading infrastructure

2014-09-15 Thread Ilya Verbin
Hello, This patch contains necessary changes for the build system to support offloading. It adds 2 new options for configure: * --enable-as-accelerator-for=ARG is intended for the offload target compiler. * --enable-offload-targets=LIST is intended for the offload host compiler. Some more info:

Re: [PATCH 1/n] OpenMP 4.0 offloading infrastructure

2015-02-19 Thread Thomas Schwinge
Hi! On Fri, 26 Sep 2014 16:36:21 +0400, Ilya Verbin wrote: > The patch has been updated: > if a compiler is configured as accelerator, > it installs *-accel-*-g++, and other drivers. But only *-accel-*-gcc is > needed. > Therefore I suppressed their installation in corresponding Makefiles. >

Re: [PATCH 1/n] OpenMP 4.0 offloading infrastructure

2015-02-20 Thread Ilya Verbin
On Thu, Feb 19, 2015 at 12:37:10 +0100, Thomas Schwinge wrote: > On Fri, 26 Sep 2014 16:36:21 +0400, Ilya Verbin wrote: > > gcc/ > > * Makefile.in > > > (install-cpp, install-common, install_driver, install-gcc-ar): Do not > > install for the offload compiler. > > > gcc/cp/ > > *

Re: [PATCH 1/n] OpenMP 4.0 offloading infrastructure

2015-02-20 Thread Thomas Schwinge
Hi! On Fri, 20 Feb 2015 17:36:12 +0300, Ilya Verbin wrote: > On Thu, Feb 19, 2015 at 12:37:10 +0100, Thomas Schwinge wrote: > > On Fri, 26 Sep 2014 16:36:21 +0400, Ilya Verbin wrote: > > > gcc/ > > > * Makefile.in > > > > > (install-cpp, install-common, install_driver, install-gcc-ar): Do n

Re: [PATCH 1/n] OpenMP 4.0 offloading infrastructure

2015-02-20 Thread Jakub Jelinek
On Fri, Feb 20, 2015 at 03:41:40PM +0100, Thomas Schwinge wrote: > Well, but users (like Jakub, for example) ;-) may decide to build the > offloading compilers without specifying --enable-languages, and that'll > then default to include Java, and you'll end up with: Yeah. We can perhaps tweak wha

Re: [PATCH 1/n] OpenMP 4.0 offloading infrastructure

2015-02-20 Thread Mike Stump
On Feb 20, 2015, at 6:36 AM, Ilya Verbin wrote: > I assumed that nobody would build an offloading compiler with > --enable-languages > other than c,c++,fortran[,lto]. :-) You should try objc and obj-c++… With some luck, they might just work out of the box.

Re: [PATCH 1/n] OpenMP 4.0 offloading infrastructure

2015-02-20 Thread Thomas Schwinge
Hi! On Fri, 20 Feb 2015 11:35:18 -0800, Mike Stump wrote: > On Feb 20, 2015, at 6:36 AM, Ilya Verbin wrote: > > I assumed that nobody would build an offloading compiler with > > --enable-languages > > other than c,c++,fortran[,lto]. > > :-) You should try objc and obj-c++… With some luck, th

Re: [PATCH 1/n] OpenMP 4.0 offloading infrastructure

2015-02-21 Thread Iain Sandoe
Hi Thomas, On 20 Feb 2015, at 19:46, Thomas Schwinge wrote: > On Fri, 20 Feb 2015 11:35:18 -0800, Mike Stump wrote: >> On Feb 20, 2015, at 6:36 AM, Ilya Verbin wrote: >>> I assumed that nobody would build an offloading compiler with >>> --enable-languages >>> other than c,c++,fortran[,lto]. >>

Re: [PATCH 1/n] OpenMP 4.0 offloading infrastructure

2015-02-25 Thread Ilya Verbin
On Fri, Feb 20, 2015 at 15:50:53 +0100, Jakub Jelinek wrote: > On Fri, Feb 20, 2015 at 03:41:40PM +0100, Thomas Schwinge wrote: > > Well, but users (like Jakub, for example) ;-) may decide to build the > > offloading compilers without specifying --enable-languages, and that'll > > then default to i

Re: [PATCH 1/n] OpenMP 4.0 offloading infrastructure

2014-12-12 Thread Thomas Schwinge
Hi! On Tue, 30 Sep 2014 13:16:37 +0200, I wrote: > On Fri, 26 Sep 2014 16:36:21 +0400, Ilya Verbin wrote: > > --- a/configure.ac > > +++ b/configure.ac > > @@ -286,6 +286,24 @@ case ${with_newlib} in > >yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; > > esac > > >

Re: [PATCH 1/n] OpenMP 4.0 offloading infrastructure

2014-12-12 Thread Jakub Jelinek
On Fri, Dec 12, 2014 at 09:14:28AM +0100, Thomas Schwinge wrote: > On Tue, 30 Sep 2014 13:16:37 +0200, I wrote: > > On Fri, 26 Sep 2014 16:36:21 +0400, Ilya Verbin wrote: > > > --- a/configure.ac > > > +++ b/configure.ac > > > @@ -286,6 +286,24 @@ case ${with_newlib} in > > >yes) skipdirs=`ech

Re: [PATCH 1/n] OpenMP 4.0 offloading infrastructure

2014-12-15 Thread Kirill Yukhin
Hi, On 12 Dec 09:17, Jakub Jelinek wrote: > On Fri, Dec 12, 2014 at 09:14:28AM +0100, Thomas Schwinge wrote: > > On Tue, 30 Sep 2014 13:16:37 +0200, I wrote: > > > On Fri, 26 Sep 2014 16:36:21 +0400, Ilya Verbin wrote: > > > > --- a/configure.ac > > > > +++ b/configure.ac > > > > @@ -286,6 +286,24

Re: [PATCH 1/n] OpenMP 4.0 offloading infrastructure

2014-09-11 Thread Jakub Jelinek
On Thu, Sep 11, 2014 at 03:28:02PM +0400, Ilya Verbin wrote: > I would like to start merging offloading-related patches from gomp-4_0-branch > to trunk. > This is the first patch (from r202620), which adds a splay tree and memory > mapping to libgomp. > I removed temporarily device 257 from it.

Re: [PATCH 1/n] OpenMP 4.0 offloading infrastructure

2014-09-11 Thread Ilya Verbin
On 11 Sep 13:34, Jakub Jelinek wrote: > I think it is not useful to split patches on in which sequence they were > added to the tree. I'd prefer patches for functional parts for the > differences between trunk and corresponding offloading branch. > So, one patch should be all the libgomp changes e

Re: [PATCH 1/n] OpenMP 4.0 offloading infrastructure

2014-09-17 Thread Jakub Jelinek
On Mon, Sep 15, 2014 at 08:52:27PM +0400, Ilya Verbin wrote: > This patch contains necessary changes for the build system to support > offloading. > It adds 2 new options for configure: > * --enable-as-accelerator-for=ARG is intended for the offload target compiler. > * --enable-offload-targets=LI

Re: [PATCH 1/n] OpenMP 4.0 offloading infrastructure

2014-09-26 Thread Ilya Verbin
Hi, The patch has been updated: On 17 Sep 15:45, Jakub Jelinek wrote: > Looks mostly ok, just some nits. But see the patch I've just posted, > perhaps we want to tweak the --enable-offload-targets arguments. And Now the targets in --enable-offload-targets can have optional path to the build or

Re: [PATCH 1/n] OpenMP 4.0 offloading infrastructure

2014-09-26 Thread Joseph S. Myers
On Fri, 26 Sep 2014, Ilya Verbin wrote: > 2014-09-26 Bernd Schmidt > Thomas Schwinge > Ilya Verbin > Andrey Turetskiy > > * configure: Regenerate. > * configure.ac (--enable-as-accelerator-for) > (--enable-offload-targets): New configure op

Re: [PATCH 1/n] OpenMP 4.0 offloading infrastructure

2014-09-30 Thread Jakub Jelinek
On Fri, Sep 26, 2014 at 04:36:21PM +0400, Ilya Verbin wrote: > 2014-09-26 Bernd Schmidt > Thomas Schwinge > Ilya Verbin > Andrey Turetskiy > > * configure: Regenerate. > * configure.ac (--enable-as-accelerator-for) > (--enable-offload-target

Re: [PATCH 1/n] OpenMP 4.0 offloading infrastructure

2014-09-30 Thread Thomas Schwinge
Hi! On Fri, 26 Sep 2014 16:36:21 +0400, Ilya Verbin wrote: > --- a/gcc/Makefile.in > +++ b/gcc/Makefile.in > @@ -58,6 +58,7 @@ build=@build@ > host=@host@ > target=@target@ > target_noncanonical:=@target_noncanonical@ > +real_target_noncanonical:=@real_target_noncanonical@ > > # Sed command

Re: [PATCH 1/n] OpenMP 4.0 offloading infrastructure

2014-10-01 Thread Ilya Verbin
On 26 Sep 22:02, Joseph S. Myers wrote: > Any patch adding new configure options needs to add documentation of the > semantics of those options in install.texi. I see no such documentation > in this patch. Done. On 30 Sep 13:16, Thomas Schwinge wrote: > Doesn't that comment belong to real_targ