set_low_cpu Subroutine

public subroutine set_low_cpu(flag)

Enable or disable low-CPU mode.

When enabled, sleep_seconds uses the OS sleep backend which typically yields to the scheduler and keeps idle CPU usage close to zero.

Arguments

  • flag: .true. to enable low-CPU mode, .false. to use spin-waiting.

Arguments

Type IntentOptional Attributes Name
logical, intent(in) :: flag

Called by

proc~~set_low_cpu~~CalledByGraph proc~set_low_cpu set_low_cpu proc~parse_restart_flags parse_restart_flags proc~parse_restart_flags->proc~set_low_cpu proc~watcher_init watcher_t%watcher_init proc~watcher_init->proc~set_low_cpu proc~maybe_supervise maybe_supervise proc~maybe_supervise->proc~parse_restart_flags

Source Code

   subroutine set_low_cpu(flag)
      logical, intent(in) :: flag
      low_cpu_mode = flag
   end subroutine set_low_cpu