3 use,
intrinsic :: iso_c_binding
16 subroutine craypat_record_start
19 call pat_record(pat_state_on, ierr)
21 end subroutine craypat_record_start
24 subroutine craypat_record_stop
26 call pat_record(pat_state_off, ierr)
28 end subroutine craypat_record_stop
31 subroutine craypat_region_begin(name)
32 character(kind=c_char,len=*) :: name
33 integer :: ierr, region_id
37 if (name .eq.
'Time-Step')
then
39 else if(name .eq.
'Pressure')
then
41 else if (name .eq.
'Velocity')
then
43 else if (name .eq.
'gather-scatter')
then
50 call pat_region_begin(region_id, name, ierr)
53 end subroutine craypat_region_begin
56 subroutine craypat_region_end
66 end subroutine craypat_region_end
Interface to CrayPat F77 API.
type(stack_i4_t), private region_depth
logical, private craypat_on
Implements a dynamic stack ADT.