db941d7ef7
gcc/ * tree-nested.c (convert_nonlocal_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,NUM_VECTORS,VECTOR_LENGTH,SEQ}. (convert_local_omp_clauses): Likewise. gcc/fortran/ * f95-lang.c (gfc_attribute_table): Add an "oacc function" attribute. * gfortran.h (symbol_attribute): Add an oacc_function bit-field. (gfc_oacc_routine_name): New struct; (gfc_get_oacc_routine_name): New macro. (gfc_namespace): Add oacc_routine_clauses, oacc_routine_names and oacc_routine fields. (gfc_exec_op): Add EXEC_OACC_ROUTINE. * openmp.c (OACC_ROUTINE_CLAUSES): New mask. (gfc_oacc_routine_dims): New function. (gfc_match_oacc_routine): Add support for named routines and the gang, worker vector and seq clauses. * parse.c (is_oacc): Add EXEC_OACC_ROUTINE. * resolve.c (gfc_resolve_blocks): Likewise. * st.c (gfc_free_statement): Likewise. * trans-decl.c (add_attributes_to_decl): Attach an 'oacc function' attribute and shape geometry for acc routine. gcc/testsuite/ * gfortran.dg/goacc/routine-3.f90: New test. * gfortran.dg/goacc/routine-4.f90: New test. * gfortran.dg/goacc/routine-5.f90: New test. * gfortran.dg/goacc/routine-6.f90: New test. * gfortran.dg/goacc/subroutines: New test. libgomp/ * libgomp.oacc-fortran/routine-5.f90: New test. * libgomp.oacc-fortran/routine-7.f90: New test. * libgomp.oacc-fortran/routine-9.f90: New test. From-SVN: r231081 |
||
---|---|---|
.. | ||
abort-1.f90 | ||
abort-2.f90 | ||
acc_on_device-1-1.f90 | ||
acc_on_device-1-2.f | ||
acc_on_device-1-3.f | ||
asyncwait-1.f90 | ||
asyncwait-2.f90 | ||
asyncwait-3.f90 | ||
atomic_capture-1.f90 | ||
atomic_rw-1.f90 | ||
atomic_update-1.f90 | ||
collapse-1.f90 | ||
collapse-2.f90 | ||
collapse-3.f90 | ||
collapse-4.f90 | ||
collapse-5.f90 | ||
collapse-6.f90 | ||
collapse-7.f90 | ||
collapse-8.f90 | ||
combined-directives-1.f90 | ||
data-1.f90 | ||
data-2.f90 | ||
data-3.f90 | ||
data-4-2.f90 | ||
data-4.f90 | ||
data-already-1.f | ||
data-already-2.f | ||
data-already-3.f | ||
data-already-4.f | ||
data-already-5.f | ||
data-already-6.f | ||
data-already-7.f | ||
data-already-8.f | ||
declare-1.f90 | ||
declare-2.f90 | ||
declare-3.f90 | ||
declare-4.f90 | ||
declare-5.f90 | ||
fortran.exp | ||
lib-1.f90 | ||
lib-2.f | ||
lib-3.f | ||
lib-4.f90 | ||
lib-5.f90 | ||
lib-6.f90 | ||
lib-7.f90 | ||
lib-8.f90 | ||
lib-10.f90 | ||
map-1.f90 | ||
openacc_version-1.f | ||
openacc_version-2.f90 | ||
pointer-align-1.f90 | ||
pset-1.f90 | ||
reduction-1.f90 | ||
reduction-2.f90 | ||
reduction-3.f90 | ||
reduction-4.f90 | ||
reduction-5.f90 | ||
reduction-6.f90 | ||
routine-1.f90 | ||
routine-2.f90 | ||
routine-3.f90 | ||
routine-4.f90 | ||
routine-5.f90 | ||
routine-7.f90 | ||
routine-9.f90 | ||
subarrays-1.f90 | ||
subarrays-2.f90 |