Skip to content
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
1 change: 1 addition & 0 deletions pympipool/parallel_executors/mpiexec.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def main():

memory = None

# required for flux interface - otherwise the current path is not included in the python path
cwd = abspath(".")
if cwd not in sys.path:
sys.path.insert(1, cwd)
Expand Down
6 changes: 5 additions & 1 deletion pympipool/parallel_executors/mpipool.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,15 @@ def main():
future_dict = {}
argument_dict = parse_arguments(argument_lst=sys.argv)

# required for flux interface - otherwise the current path is not included in the python path
cwd = abspath(".")
if cwd not in sys.path:
sys.path.insert(1, cwd)

with MPIPoolExecutor(int(argument_dict["total_cores"])) as executor:
with MPIPoolExecutor(
max_workers=int(argument_dict["total_cores"]),
path=sys.path, # required for flux interface - otherwise the current path is not included in the python path
) as executor:
if executor is not None:
context, socket = connect_to_socket_interface(
host=argument_dict["host"], port=argument_dict["zmqport"]
Expand Down