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 | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(flop_recorder_type), | intent(inout) | :: | self | |||
integer(kind=int64), | intent(in) | :: | flops |
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