On Wed, Jul 22, 2015 at 06:04:20PM +0200, Thomas Schwinge wrote: > On Tue, 21 Apr 2015 17:58:39 +0200, Jakub Jelinek <ja...@redhat.com> wrote: > > Attached is a minimal patch to get at least a trivial OpenMP 4.0 testcase > > offloading to NVPTX (the first patch). The second patch is WIP, just first > > few needed changes to make libgomp to build for NVPTX (several weeks of work > > at least). > > We're not in particular working on making nvptx offloading work for > OpenMP, but also for OpenACC offloading a tiny bit of code is required to > be shipped in an offloading device's runtime library -- code that > conceptually belongs into libgomp. (On gomp-4_0-branch, it currently > lives in libgcc because that was easier to do.) Actually, as I should > find out, building a "dummy" (empty) libgomp for nvptx is not actually > difficult. Additionally to your second patch (U2; quoted at the end of > this email), we'll need the following:
The U2 version was a very early one, I've posted a newer version later, but supposedly we can go with my U2 (if you've tested it together with your patch, please check it in yourself) and your patch, and then incrementally start removing the zero sized stubs or replacing them with something real. Jakub