본문 바로가기
Programming/Error

[Error] nohup 안됨 - MPIrun

by didi0di 2024. 6. 4.
728x90

리눅스 Triton Server에서 nohup으로 모델을 띄워놨는데, 

VScode 창을 닫으면 (종료하면) 계속 모델이 죽는 문제가 발생.

 

nohup이 자꾸 안되서... 이것저것 시도해봤는데 결국 아래와 같이 해결했다.

 

 

전체 스크립트를 괄호로 감싸면 된다!

(CUDA_VISIBLE_DEVICES=0 nohup mpirun -n 1 blahblah &)

 

https://stackoverflow.com/questions/48296285/nohup-does-not-work-mpirun 

 

nohup "does not work" MPIrun

I am trying to use the "nohup" command to avoid killing a background process when exiting the terminal on linux MATE. The process I want to run is a MPIrun process and I use the following command:

stackoverflow.com

 

728x90

댓글