Przeglądaj źródła

limit mail_recorder container's gpu

master
Jeong Geol Kim 4 lat temu
rodzic
commit
b88d1803a7
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      detect_new_folder.py

+ 1
- 1
detect_new_folder.py Wyświetl plik

@@ -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
     

Ładowanie…
Anuluj
Zapisz