Skip to content

Conversation

@jan-janssen
Copy link
Member

No description provided.

@jan-janssen jan-janssen changed the title Pysq integration Pysqa integration Jul 12, 2023
@jan-janssen jan-janssen linked an issue Jul 12, 2023 that may be closed by this pull request
@jan-janssen
Copy link
Member Author

Current test script:

import numpy as np
from pympipool import Pool
from pysqa import QueueAdapter


def calc(i):
    return np.array(i ** 2)


if __name__ == "__main__":
    qa = QueueAdapter(directory="/home/user/.queues")
    with Pool(
        max_workers=2,
        cwd="/home/user/test",
        queue_adapter=qa, 
        queue_adapter_kwargs={
            "job_name": "pympipool", 
        }
    ) as p:
        print(p.map(func=calc, iterable=[1, 2, 3, 4]))

@jan-janssen jan-janssen merged commit 7352888 into main Jul 13, 2023
@jan-janssen jan-janssen deleted the pysq_integration branch July 13, 2023 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature] SLURM integration in addition to flux integration

2 participants