You're definitely not using the GPU; the code doesn't run automatically on the GPU. You need to specify which functions you want to run on the GPU by using the @jit decorator from the Numba library. With the GPU, the code you provided shouldn't take more than 5 minutes to execute (I'm exaggerating). You'll know you're using the GPU because the task manager will show 100% usage.