1、cuda设置指定的GPU可见
代码:CUDA_VISIBLE_DEVICES='0,1' python test.py
https://blog.csdn.net/u010454261/article/details/70236988/