Skip to content

Commit

Permalink
Change init method from fork-server to spawn
Browse files Browse the repository at this point in the history
Summary: It seems AMD GPU runtime doesn't quite work with forkserver for some reasons that we still need to debug. Basically hipMalloc will fail for subprocess. So just change it to spawn - I think it should be fine?

Differential Revision: D63311340
  • Loading branch information
xw285cornell authored and facebook-github-bot committed Sep 25, 2024
1 parent 0d0feb1 commit cd350ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchrec/distributed/test_utils/multi_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def _run_multi_process_test(
# pyre-ignore
**kwargs,
) -> None:
ctx = multiprocessing.get_context("forkserver")
ctx = multiprocessing.get_context("spawn")
processes = []
for rank in range(world_size):
kwargs["rank"] = rank
Expand Down

0 comments on commit cd350ea

Please sign in to comment.