Run a premade tensorflow 2 estimator to test gpu
Nvidia Driver and Cuda libraries are needed to be pre-installed. If not refer this link.
Make sure current directory contains following files Readme.txt, requirements.txt and run.py
Use pip install package_name
, pip3 install package_name
or python3 -m pip install package_name
whichever suitable for install packages
pip install virtualenv
python -m venv gpu-check-env
source gpu-check-env/bin/activate
pip install -r requirements.txt
python run.py --batch-size 256 --train-steps 5000 --device gpu
Change values of batch size and train steps as per requirement
watch -n 1 nvidia-smi
deactivate