Opened 8 years ago

Last modified 7 years ago

#51367 assigned enhancement

gcc6: add OpenACC NVIDIA offload compilers

Reported by: thomasdeakin@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: gcc6

Description

GCC 6.1 now supports OpenACC 2.0a targeting NVIDIA GPUs. This requires a separate configure and build step before building the main compiler. It would be great if GCC 6.1 from MacPorts came with this set up.

Change History (4)

comment:1 Changed 8 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to mww@…
Type: requestenhancement
Version: 2.3.4

In the future, please Cc the port maintainers (port info --maintainers gcc6), if any.

Note that a "request" ticket type is only for requesting a new port.

comment:2 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Summary: GCC6 does not include OpenACC NVIDIA offload compilersgcc6: add OpenACC NVIDIA offload compilers

Specifically, what would the separate configure and build steps need to do?

comment:3 Changed 8 years ago by thomasdeakin@…

It's pretty laborious, and I managed to get it built for Linux using these instructions: http://scelementary.com/2015/04/25/openacc-in-gcc.html The instructions are for GCC 5.0 but they work fine for 6.1.

In short, an external assembler for PTX is built, then GCC is configured, built and installed targeting PTX. Then GCC is built for the second time, configured as a host compiler specifying that it can offload.

comment:4 Changed 7 years ago by kurthindenburg (Kurt Hindenburg)

Owner: changed from mww@… to macports-tickets@…
Status: newassigned
Note: See TracTickets for help on using tickets.