Skip to content
Snippets Groups Projects
Commit a49a2c28 authored by Hamid Shojanazeri's avatar Hamid Shojanazeri
Browse files

adding PT cuda allocation expand flag

parent 442c1ccf
Branches
Tags
No related merge requests found
......@@ -253,6 +253,7 @@ def setup_environ_flags(rank):
os.environ["TORCH_SHOW_CPP_STACKTRACES"] = str(1)
os.environ["NCCL_ASYNC_ERROR_HANDLING"] = str(1)
os.environ["TORCH_DISTRIBUTED_DEBUG"] = "DETAIL"
os.environ['PYTORCH_CUDA_ALLOC_CONF']='expandable_segments:True'
if rank == 0:
print(f"--> Running with torch dist debug set to detail")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment