Testing my GPU with looping code example

Hello everyone

I would like to run python code in loop to test my GPU . Can anyone share a code with me? I don’t have any knowledge in programming and couldn’t fid an example in the net yet .
I’m using Pytorch 1.6 suitable for CUDA 10.2 , Python 3.7.9 and Quadro RTX 4000 . In addition I’m using Spyder 4.2.1 . Host system is based on Windows server 2019

Thank you

Could you define what you mean by in loop? Is it a training or testing loop?
Assuming you want to benchmark your GPU you can use the this repo