Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/unittest/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: Copyright (c) 2022-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-FileCopyrightText: Copyright (c) 2022-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -337,12 +337,12 @@ def torch_empty_cache() -> None:
torch.cuda.empty_cache()


@pytest.fixture(scope="module", params=[2, 4, 8])
@pytest.fixture(scope="module")
def mpi_pool_executor(request):
"""
Start an MPIPoolExecutor with `request.param` workers.
"""
num_workers = request.param
num_workers = getattr(request, "param", 2)
with MPIPoolExecutor(num_workers) as executor:
# make the number of workers visible to tests
setattr(executor, "num_workers", num_workers)
Expand Down
Loading