I don’t use conda personnaly. But something like conda list (or something similar, you may want to double check on google) should get you the list of the installed packages.
For small matrices, it is possible that the GPU runtime is larger than the CPU one. In particular, sending the job to the gpu and asking for the job to be done takes some time.
Also to get proper timings on gpu, you need to do the following every time you call time.time():
torch.cuda.synchronize()
current_time = time.time()