This code is a code that sends mail when gpu usage falls below a certain level on a server (or personal computer).
It is expected to be useful for machine learning developers to check whether their experiments have been completed.
To send mail, you need to set up a gmail account.
You should set up "2-step verification" through the link below. https://myaccount.google.com/security
After that, you need to create a password using "App password created".
python gpu_empty_alarm.py --gpu_id 0 1 2 --memory_usage 5000 --memory_utill 50 \
--ID_s [Your E-mail address] --PW_s [Your E-mail PW] --ID_r [Your ID for receive mail] --mail_check
You have to change memory_usage and memory_utill
memory_usage : GPU memory in use
memory_utill : GPU Utilization