kineto icon indicating copy to clipboard operation
kineto copied to clipboard

Don't call `getenv` in side threads

Open eqy opened this issue 5 months ago • 1 comments

Calling getenv on side threads is dangerous as it can potentially segfault if the main thread is in the middle of setting environment variables: https://github.com/pytorch/pytorch/issues/134596

This PR only calls getenv on init rather than in Config() which can be called from multiple threads.

CC @malfet @nWEIdia @ptrblck @tinglvv

eqy avatar Aug 31 '24 00:08 eqy