Use GPUs

I didn’t use nvidia.So I didn’t install GPU version and cuda.
AssertionError : Torch not compiled with CUDA enabled

Why didn’t AssertionError happen when I run the following code?
<torch.cuda.device at 0x16349fb2488>

5.6.5. Exercises

  1. you should see almost linear scaling? I’m confused what is linear scaling.

‘Linear scaling’ is that the computation speed is proportional to the number of GPUs you use.
e.g., With one GPU, two tasks take 2 sec, and with two GPUs, two tasks (each on one GPU) takes only 1 sec.

1 Like

awsblog – 玩转GPU实例之系统工具 – NVIDIA 篇