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/activatepip install -r requirements.txtpython run.py --batch-size 256 --train-steps 5000 --device gpuChange values of batch size and train steps as per requirement
watch -n 1 nvidia-smideactivate