This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gomp4 4/8] libgomp: minimal OpenMP support in plugin-nvptx.c
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Alexander Monakov <amonakov at ispras dot ru>
- Cc: gcc-patches at gcc dot gnu dot org, Arutyun Avetisyan <arut at ispras dot ru>
- Date: Thu, 24 Sep 2015 09:26:59 +0200
- Subject: Re: [gomp4 4/8] libgomp: minimal OpenMP support in plugin-nvptx.c
- Authentication-results: sourceware.org; auth=none
- References: <1443028942-4081-1-git-send-email-amonakov at ispras dot ru> <1443028942-4081-5-git-send-email-amonakov at ispras dot ru>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Wed, Sep 23, 2015 at 08:22:18PM +0300, Alexander Monakov wrote:
> This is a minimal patch for NVPTX OpenMP offloading, using Jakub's initial
> implementation. It allows to successfully run '#pragma omp target', without
> any parallel execution: 1 team of 1 thread is spawned on the device, and
> target regions with '#pragma omp parallel' will fail with a link error.
>
> * plugin/plugin-nvptx.c (nvptx_host2dev): Allow NULL 'nvthd'.
> (nvptx_dev2host): Ditto.
> (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
> (GOMP_OFFLOAD_run): New.
Ok.
Jakub