Skip to content

Commit

Permalink
switch to LogMap in CI test
Browse files Browse the repository at this point in the history
  • Loading branch information
pmcurtin committed Aug 17, 2024
1 parent ce1c067 commit ee8e6e8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/test_CI.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import torch
import torch.distributed as dist

import torchrunx # noqa: I001
from torchrunx.logging_utils import DefaultLogSpec
import torchrunx
from torchrunx import LogMap


def test_simple_localhost():
Expand Down Expand Up @@ -56,9 +56,7 @@ def dist_func():
func_kwargs={},
workers_per_host=2,
backend="gloo",
log_spec=DefaultLogSpec.basic(
hostnames=["localhost"], workers_per_host=[2], log_dir="./test_logs"
),
log_map=LogMap.basic(hostnames=["localhost"], workers_per_host=[2], log_dir="./test_logs"),
)

log_files = next(os.walk("./test_logs"), (None, None, []))[2]
Expand Down

0 comments on commit ee8e6e8

Please sign in to comment.