Snakemake workflow that checks the scalability of LAMMPS run on a cluster

public public 1yr ago 0 bookmarks

General

The workflow separated to core and node scalability checks. Core scalability checks scalibility on same node. Node scalability checks scalability in multi node configurtartion.

Edit the file config.yaml to set the pa

Code Snippets

22
23
24
25
26
27
28
29
30
31
shell:
    """
    set -x
    origdir=`pwd`
    cat {input} > timings
    mv timings {params.rundir}
    cd {params.rundir} 
    python ${{origdir}}/scripts/analyze_efficiency.py
    mv core_scalability.png ${{origdir}}/{output} 
    """
44
45
46
47
48
49
50
51
52
shell:
    """
    origdir=`pwd`
    cat {input} > timings
    mv timings {params.rundir}
    cd {params.rundir} 
    python ${{origdir}}/scripts/analyze_efficiency_multinode.py
    mv core_scalability.png ${{origdir}}/{output} 
    """
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
shell:
    """
    set -x
    module load gcc/gcc-12.1
    #module load openmpi/openmpi-4.1.5
    BASE_MPI=/usr/mpi/gcc/openmpi-4.1.5a1/
    export PATH="${{BASE_MPI}}/bin:$PATH"
    export LD_LIBRARY_PATH="${{BASE_MPI}}/lib:$LD_LIBRARY_PATH"
    ORIGDIR=`pwd`

    COMP=GNU
    RUNDIR={params.rundir}

    #send job
    cd $RUNDIR
    cat $PBS_NODEFILE
    mpirun -n {params.threads} --bind-to none --hostfile ${{PBS_NODEFILE}} {params.lmp} -in ${{ORIGDIR}}/{input[0]} -screen none -log ${{ORIGDIR}}/{log}
    cd ${{ORIGDIR}}
    grep Loop {log} >& {output}
    """
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
shell:
    """
    set -x
    module load gcc/gcc-12.1.0
    BASE_MPI=/usr/mpi/gcc/openmpi-4.1.5a1/
    export PATH="${{BASE_MPI}}/bin:$PATH"
    export LD_LIBRARY_PATH="${{BASE_MPI}}/lib:$LD_LIBRARY_PATH"
    ORIGDIR=`pwd`

    COMP=GNU
    RUNDIR={params.rundir}

    #send job
    cd $RUNDIR
    cat $PBS_NODEFILE
    mpirun -n {params.total_procs} --hostfile ${{PBS_NODEFILE}} {params.lmp} -in ${{ORIGDIR}}/{input[0]} -screen none -log ${{ORIGDIR}}/{log}
    cd ${{ORIGDIR}}
    grep Loop {log} >& {output}
    """
SnakeMake From line 103 of master/Snakefile
ShowHide 4 more snippets with no or duplicated tags.

Login to post a comment if you would like to share your experience with this workflow.

Do you know this workflow well? If so, you can request seller status , and start supporting this workflow.

Free

Created: 1yr ago
Updated: 1yr ago
Maitainers: public
URL: https://github.com/pipeandflow/scalability_check
Name: scalability_check
Version: 1
Badge:
workflow icon

Insert copied code into your website to add a link to this workflow.

Downloaded: 0
Copyright: Public Domain
License: None
  • Future updates

Related Workflows

cellranger-snakemake-gke
snakemake workflow to run cellranger on a given bucket using gke.
A Snakemake workflow for running cellranger on a given bucket using Google Kubernetes Engine. The usage of this workflow ...