How multi-threading is managed within ddp?

The linked line of code sounds right and you could try to set the --log_dir as described in this argument.
Good to hear you’ve solved the threading issue.