소스 검색

limit mail_recorder container's gpu

master
Jeong Geol Kim 4 년 전
부모
커밋
b88d1803a7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      detect_new_folder.py

+ 1
- 1
detect_new_folder.py 파일 보기

@@ -17,7 +17,7 @@ while True:
17 17
     tmp_recent = str(root_path) + str(recent_file[0])
18 18
     if target_dir != tmp_recent:
19 19
         time.sleep(5)
20
-        command = 'docker run --rm --name mail_recorder --gpus 1 --privileged -v /dev:/dev -v /home/mc365/sources:/sources -v /home/mc365/data/'+str(recent_file[0])+':/data/'+str(recent_file[0])+' stereolabs/zed:3.5-gl-devel-cuda11.1-ubuntu18.04 python3 /sources/recorder.py.bak'
20
+        command = 'docker run --rm --name mail_recorder --gpus '"device=1"' -v /dev:/dev -v /home/mc365/sources:/sources -v /home/mc365/data/'+str(recent_file[0])+':/data/'+str(recent_file[0])+' stereolabs/zed:3.5-gl-devel-cuda11.1-ubuntu18.04 python3 /sources/recorder.py.bak'
21 21
         os.system(str(command))        
22 22
     target_dir = str(root_path) + str(recent_file[0])    
23 23
     

Loading…
취소
저장