@ptrblck
I use the nvidia-smi, the output is as follows:

image728×484 9.67 KB

Then, I tried to creat a tensor on gpu with


tsts727×564 37.5 KB

It can be seen that gpu-0 to gpu-7 can successfully apply for tensor, but gpu-8 and gpu-9 will have a “cuda out of memory” error, even if there is sufficient memory.