nvptx offloading linking

Programming / Compilers / GCC - tschwinge [138bc75d-0d04-0410-961f-82ee72b054a4] - 2 October 2015 14:43 UTC

gcc/
- config/nvptx/mkoffload.c (Kind, Vis): Remove enums. (Token, Stmt): Remove structs. (decls, vars, fns): Remove variables. (alloc_comment, append_stmt, is_keyword): Remove macros. (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts) (write_stmt, write_stmts, parse_insn, parse_list_nosemi) (parse_init, parse_file): Remove functions. (read_file): Accept a pointer to a length and store into it. (process): Don't try to parse the input file, just write it out as a string, but looking for maps. Also write out the length. (main): Don't use "-S" to compile PTX code.

libgomp/
- oacc-ptx.h: Remove file, moving its content into...
- config/nvptx/fortran.c: ... here...
- config/nvptx/oacc-init.c: ..., here...
- config/nvptx/oacc-parallel.c: ..., and here.
- config/nvptx/openacc.f90: New file.
- plugin/plugin-nvptx.c: Don't include "oacc-ptx.h". (link_ptx): Don't link in predefined bits of PTX code.

689db5e nvptx offloading linking
gcc/ChangeLog | 15 +
gcc/config/nvptx/mkoffload.c | 677 +++-------------------------------
libgomp/ChangeLog | 10 +
libgomp/config/nvptx/fortran.c | 40 ++
libgomp/config/nvptx/oacc-init.c | 42 +++
libgomp/config/nvptx/oacc-parallel.c | 358 ++++++++++++++++++
libgomp/config/nvptx/openacc.f90 | 102 +++++
libgomp/oacc-init.c | 6 +-
libgomp/oacc-ptx.h | 426 ---------------------
libgomp/plugin/plugin-nvptx.c | 30 --
10 files changed, 617 insertions(+), 1089 deletions(-)

Upstream: gcc.gnu.org


  • Share