ROCm / rocmProfileData

MIT License
14 stars 8 forks source link

Improve rpdTracerControl for multiprocessing and appending to existin… #13

Closed mwootton closed 2 years ago

mwootton commented 2 years ago

…g files

Only the top level process is allowed to initialize a file. Filename can be set and append mode can be set, but only before logging starts.

mwootton commented 2 years ago

In python 3.6: multiprocessing.current_process() is a Process for children and is a _MainProcess for the parent. Implementation detail, but is just has to hold up until version 3.8 where we can do a proper check.