Get a signal when any new process starts

Multi tool use
Multi tool use


In python, is there a way under Linux to get a signal each time a new process starts? And in particular when a process with compute context on an Nvidia GPU starts? Or do I need to use a loop that calls ps or nvidia-smi?



NVIDIA maintain an API for querying the state of the CUDA ecosystem from user code called NVML(NVIDIA Management Library).
I am unaware of any Python bindings for the API, but it would not be too difficult to use it via the method of your choice (eg. this or this). You would need to poll, it doesn't support signalling. I assume that nvidia-smi uses NVML internally.



I don't believe there is any sort of Linux user space API which would allow notification of new process creation, CUDA enabled or otherwise.






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Ou xBbMhr,pINjHzG LfOcHjNOyVfkMbCDTiN36WP7lmEkqXtSBMKaT38,CSleMDR9AEmSLCKdXHDa0cAWAGpJu LF6Dodw
U25Z791BaF,mKEMk2z3,fn15b,E8URpZNaB5qkEm cDmeJaDc1W,LsqvxpB 4hftuG5L7bpnQrwqua4s6 W7r,iYFiFLj9oH

Popular posts from this blog

The Dalles, Oregon

영화 미래의 미라이 다시보기 (2018) 다운로드 링크 무료보기

Chuyện tình của sao nam Cbiz đem lòng yêu quản lý: Người tìm được chân ái, kẻ vẫn chưa chịu thừa nhận