OpenACC parallelization

Thomas Schwinge thomas@codesourcery.com
Wed Apr 15 11:34:41 GMT 2020


Hi!

On 2020-04-14T09:40:06+0100, Lewis Braley via Gcc-help <gcc-help@gcc.gnu.org> wrote:
> I have been trying to use OpenACC to allow for cpu-based loop
> parallelization in GCC, however I cannot seem to get it working in either C
> or C++.>

Thanks for your interest!

> The PGI C++ compiler will successfully compile and run parallel
> code.
>
> This stack overflow post has more details:
> https://stackoverflow.com/questions/61017223/compiling-c-openacc-parallel-cpu-code-using-gcc-g

I answered on there, <https://stackoverflow.com/a/61227622/664214>:

| It's not yet supported in GCC to use OpenACC to schedule parallel loops onto multicore CPUs. Using OpenMP works for that, of course, and you can have code with mixed OpenACC (for GPU offloading, as already present in your code) and OpenMP directives (for CPU parallelization, not yet present in your code), so that the respective mechanism will be used depending on whether compiling with `-fopenacc` vs. `-fopenmp`.
|
| Like PGI are doing, it certainly can be supported in GCC; we'll certainly be able to implement that, but it has not yet been scheduled, has not yet been funded for GCC.


Grüße
 Thomas
-----------------
Mentor Graphics (Deutschland) GmbH, Arnulfstraße 201, 80634 München / Germany
Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Alexander Walter



More information about the Gcc-help mailing list