The following pair of patches add support for routines.
01-trunk-routine-code-1102.patch: Compiler changes
02-trunk-routine-tests-1102.patch: Tests
The changes are pretty straight forwards, as the execution model patch set laid
the groundwork. Routines are decorated with the 'oacc routine' pragma, so they
go through essentially the same processing as a parallels region, except of
course they're already a device-side function.
As with existing offloading the design is forward compatible with device_type
support, which would operate in the same manner as an openacc offloaded region
function WRT processing the attribute.
nathan