mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-08 12:30:42 +00:00
[misc] update pre-commit and run all files (#4752)
* [misc] update pre-commit * [misc] run pre-commit * [misc] remove useless configuration files * [misc] ignore cuda for clang-format
This commit is contained in:
@@ -15,7 +15,7 @@ def shared_tempdir() -> Iterator[str]:
|
||||
try:
|
||||
obj = [tempdir]
|
||||
dist.broadcast_object_list(obj, src=0)
|
||||
tempdir = obj[0] # use the same directory on all ranks
|
||||
tempdir = obj[0] # use the same directory on all ranks
|
||||
yield tempdir
|
||||
finally:
|
||||
dist.barrier()
|
||||
|
Reference in New Issue
Block a user