Explorar el Código

limit mail_recorder container's gpu

master
Jeong Geol Kim hace 4 años
padre
commit
b88d1803a7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      detect_new_folder.py

+ 1
- 1
detect_new_folder.py Ver fichero

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
     

Loading…
Cancelar
Guardar