[BUG]: Setting the GPU card configuration does not take effect.
Created by: Mr-Nineteen
description: 1.nvidia-smi Thu Apr 30 10:05:47 2020 +-----------------------------------------------------------------------------+ | NVIDIA-SMI 418.87.00 Driver Version: 418.87.00 CUDA Version: 10.1 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | |===============================+======================+======================| | 0 GeForce RTX 208... Off | 00000000:3D:00.0 Off | N/A | | 27% 33C P2 51W / 250W | 567MiB / 10989MiB | 0% Default | +-------------------------------+----------------------+----------------------+ | 1 GeForce RTX 208... Off | 00000000:41:00.0 Off | N/A | | 23% 24C P8 11W / 250W | 10MiB / 10989MiB | 0% Default | +-------------------------------+----------------------+----------------------+ | 2 GeForce RTX 208... Off | 00000000:B1:00.0 Off | N/A | | 26% 33C P2 57W / 250W | 1124MiB / 10989MiB | 0% Default | +-------------------------------+----------------------+----------------------+ | 3 GeForce RTX 208... Off | 00000000:B5:00.0 Off | N/A | | 23% 25C P8 22W / 250W | 10MiB / 10989MiB | 0% Default | +-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+ | Processes: GPU Memory | | GPU PID Type Process name Usage | |=============================================================================| +-----------------------------------------------------------------------------+ 2.pip3 list | grep paddle paddlepaddle-gpu 1.7.2.post107 3.Setting configuration: export CUDA_VISIBLE_DEVICES="1" export FLAGS_selected_gpus="1" export NV_GPU=1 3.Code test: import paddle.fluid as fluid gpu_place = fluid.CUDAPlace(0) fluid.install_check.run_check() 4.error: Invalid CUDAPlace(2), must inside [0, 1), because GPU number on your machine is 1
After setting the environment variables, getting the card still does not take effect. bug?