ソースを参照

limit mail_recorder container's gpu

master
Jeong Geol Kim 5年前
コミット
b88d1803a7
1個のファイルの変更1行の追加1行の削除
  1. 1
    1
      detect_new_folder.py

+ 1
- 1
detect_new_folder.py ファイルの表示

17
     tmp_recent = str(root_path) + str(recent_file[0])
17
     tmp_recent = str(root_path) + str(recent_file[0])
18
     if target_dir != tmp_recent:
18
     if target_dir != tmp_recent:
19
         time.sleep(5)
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
         os.system(str(command))        
21
         os.system(str(command))        
22
     target_dir = str(root_path) + str(recent_file[0])    
22
     target_dir = str(root_path) + str(recent_file[0])    
23
     
23
     

読み込み中…
キャンセル
保存