Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use pympipool.Executor rather than pympipool.mpi.PyMPIExecutor #281

Merged
merged 2 commits into from
Apr 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion .ci_support/environment-old.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ dependencies:
- jinja2 =2.11.3
- paramiko =2.7.1
- tqdm =4.66.1
- pympipool =0.7.0
- pympipool =0.8.0
- cloudpickle =2.2.1
9 changes: 4 additions & 5 deletions pysqa/executor/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from typing import Optional
import sys

from pympipool.mpi import PyMPIExecutor
from pympipool import Executor
from pysqa.executor.helper import (
read_from_file,
deserialize,
Expand Down Expand Up @@ -42,16 +42,15 @@ def execute_files_from_list(

def execute_tasks(cores: int, cache_directory: str):
tasks_in_progress_dict = {}
with PyMPIExecutor(
max_workers=cores,
with Executor(
max_cores=cores,
cores_per_worker=1,
threads_per_core=1,
gpus_per_worker=0,
oversubscribe=False,
init_function=None,
cwd=cache_directory,
sleep_interval=0.1,
enable_slurm_backend=False,
backend="mpi",
) as exe:
while True:
execute_files_from_list(
Expand Down
Loading