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

pi.calc output example is empty #18

Open
vsoch opened this issue Dec 17, 2023 · 0 comments
Open

pi.calc output example is empty #18

vsoch opened this issue Dec 17, 2023 · 0 comments

Comments

@vsoch
Copy link
Collaborator

vsoch commented Dec 17, 2023

@johanneskoester I am very close to getting this working! The step runs successfully:

rule calc_pi:
    input:
        "pi_MPI",
    output:
        "pi.calc",
    log:
        "logs/calc_pi.log",
    resources:
        mem_mb=0,
        tasks=1,
        mpi="mpiexec",
    shell:
        "chmod +x {input};"
        "{resources.mpi} -hostfile $BATCH_HOSTS_FILE -n {resources.tasks} {input} 10 > {output} 2> {log};"        

And I'm copying the logic from https://github.com/snakemake/snakemake/blob/6aabb5db16634c077ba808dbd000a3ed67d6a3c0/tests/test_slurm_mpi/Snakefile#L48-L49 but adding the hostfile. However when I download pi.calc, the output is empty. Are we sure this is the correct usage? When this last step is running I can open a PR to add this full example for intel mpi on Google batch!

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

No branches or pull requests

1 participant