Using gpu for our function makes it fast as compared to cpu, so I want to run the function using gpu to make it fast in python.
#this function should run in GPU
def sendRequest(url):
resp = requests.get(url).text.lower()
return resp
The above function is sending requests to thousands of URLs and I want it to use GPU power.
GPU I have : nvidia GTX 1660 super 6GB