Hi,
The exit code is 1 for “echo quit | nvidia-cuda-mps-control”
Here is my test:
bash-4.2$ nvidia-smi --query-gpu=index,compute_mode --format=csv
index, compute_mode
0, Exclusive_Process
1, Default
2, Default
3, Exclusive_Process
bash-4.2$ export CUDA_VISIBLE_DEVICES=0
bash-4.2$ export CUDA_MPS_PIPE_DIRECTORY=/tmp/nvidia-mps
bash-4.2$ export CUDA_MPS_LOG_DIRECTORY=/tmp/nvidia-log
bash-4.2$ nvidia-cuda-mps-control -d
bash-4.2$ echo quit | nvidia-cuda-mps-control
bash-4.2$ echo $?
1
bash-4.2$ cat /tmp/nvidia-log/control.log
[2017-05-13 12:28:03.116 Control 80429] Start
[2017-05-13 12:28:08.078 Control 80429] Accepting connection…
[2017-05-13 12:28:08.078 Control 80429] NEW UI
[2017-05-13 12:28:08.078 Control 80429] Cmd:quit
[2017-05-13 12:28:08.078 Control 80429] Exit with status 0
The MPS process is exit but the exit code is 1 while get from shell. From the log it’s said mps exit with status 0.
Anyone can help? Thanks.