add_flops Subroutine

private subroutine add_flops(self, flops)

Add an int64 variable which contains the FLOPs we use int64 since we might reach very large FLOP counts

Usage: call my_flop_recorder%add(flops)

Type Bound

flop_recorder_type

Arguments

Type IntentOptional Attributes Name
class(flop_recorder_type), intent(inout) :: self
integer(kind=int64), intent(in) :: flops

Called by

proc~~add_flops~~CalledByGraph proc~add_flops flop_recorder_type%add_flops proc~flop_rate_add_flops flop_rate_type%flop_rate_add_flops proc~flop_rate_add_flops->proc~add_flops

Source Code

   subroutine add_flops(self, flops)
   !! Add an int64 variable which contains the FLOPs
   !! we use int64 since we might reach very large FLOP counts
   !!
   !! Usage: call my_flop_recorder%add(flops)
   !!
      class(flop_recorder_type), intent(inout) :: self
      integer(int64), intent(in) :: flops
      self%flop_count = self%flop_count + flops

   end subroutine add_flops