r217055 - in /branches/gomp-4_0-branch: gcc/Cha...

cesar@gcc.gnu.org cesar@gcc.gnu.org
Mon Nov 3 21:23:00 GMT 2014


Author: cesar
Date: Mon Nov  3 21:23:35 2014
New Revision: 217055

URL: https://gcc.gnu.org/viewcvs?rev=217055&root=gcc&view=rev
Log:
	gcc/
	* oacc-builtins.def (BUILT_IN_GOACC_GET_NUM_THREADS): New built-in
	function.
	(BUILT_IN_ACC_GET_DEVICE_TYPE): Likewise.
	* omp-low.c (oacc_max_threads): New function.
	(lower_reduction_clauses): Use the GOACC thread builtin functions to
	determine the thread count. Handle multiple reduction variables.
	(expand_omp_for_static_nochunk): Likewise.
	(expand_omp_for_static_chunk): Likewise.
	(finalize_reduction_data): General cleanups.
	(process_reduction_data): Use acc_get_device_type to determine nthreads
	at runtime.

	libgomp/
	* libgomp.map (GOACC_get_thread_num): Declare.
	(GOACC_get_num_threads): Declare.
	* libgomp_g.h (GOACC_get_thread_num): Declare.
	(GOACC_get_num_threads): Declare.
	* oacc-parallel.c (GOACC_parallel): Handle num_gangs.
	(GOACC_get_num_threads): New function.
	(GOACC_get_thread_num): New function.
	* oacc-ptx.h: New file.
	* plugin-nvptx.c (ABORT_PTX): Remove macro. Move to oacc-ptx.h.
	(ACC_ON_DEVICE_PTX): Likewise.
	(link_ptx): Also link ptx code defined by GOACC_INTERNAL_PTX.
	(PTX_exec): Handle gangs/CTAs.
	* testsuite/libgomp.oacc-c/reduction-1.c: New test.
	* testsuite/libgomp.oacc-c/reduction-2.c: New test.
	* testsuite/libgomp.oacc-c/reduction-3.c: New test.
	* testsuite/libgomp.oacc-c/reduction-4.c: New test.
	* testsuite/libgomp.oacc-c/reduction-5.: New test.
	* testsuite/libgomp.oacc-c/reduction-initial-1.c: New test.
	* testsuite/libgomp.oacc-fortran/reduction-1.f90: New test.
	* testsuite/libgomp.oacc-fortran/reduction-2.f90: New test.
	* testsuite/libgomp.oacc-fortran/reduction-3.f90: New test.
	* testsuite/libgomp.oacc-fortran/reduction-4.f90: New test.
	* testsuite/libgomp.oacc-fortran/reduction-5.f90: New test.
	* testsuite/libgomp.oacc-fortran/reduction-6.f90: New test.


Added:
    branches/gomp-4_0-branch/libgomp/oacc-ptx.h
    branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c/reduction-1.c
    branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c/reduction-2.c
    branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c/reduction-3.c
    branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c/reduction-4.c
    branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c/reduction-5.c
    branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-fortran/reduction-1.f90
    branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-fortran/reduction-2.f90
    branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-fortran/reduction-3.f90
    branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-fortran/reduction-4.f90
    branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-fortran/reduction-5.f90
    branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-fortran/reduction-6.f90
Modified:
    branches/gomp-4_0-branch/gcc/ChangeLog.gomp
    branches/gomp-4_0-branch/gcc/oacc-builtins.def
    branches/gomp-4_0-branch/gcc/omp-low.c
    branches/gomp-4_0-branch/libgomp/ChangeLog.gomp
    branches/gomp-4_0-branch/libgomp/libgomp.map
    branches/gomp-4_0-branch/libgomp/libgomp_g.h
    branches/gomp-4_0-branch/libgomp/oacc-parallel.c
    branches/gomp-4_0-branch/libgomp/plugin-nvptx.c
    branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c/reduction-initial-1.c



More information about the Gcc-cvs mailing list