Skip to content

Instantly share code, notes, and snippets.

@taless474
Created August 11, 2020 04:55
Show Gist options
  • Select an option

  • Save taless474/dc94adfd39928f30a35e4356d2fb563c to your computer and use it in GitHub Desktop.

Select an option

Save taless474/dc94adfd39928f30a35e4356d2fb563c to your computer and use it in GitHub Desktop.

Revisions

  1. taless474 created this gist Aug 11, 2020.
    34 changes: 34 additions & 0 deletions sbatch
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,34 @@
    in src.sh we have:

    #!/bin/bash
    #SBATCH -N 4
    #SBATCH -n 4
    #SBATCH -p marvin
    #SBATCH --time=72:00:00
    #SBATCH --job-name=conv_%j
    #SBATCH --output=res-%j.txt
    #SBATCH --error=error-%j.txt

    module purge
    module load python/3.8.2 pmix/3.1.5 clang/10.0.0 cmake/3.16.4 papi/5.7.0 blaze_tensor/master hwloc/2.2.0 ucx/1.7.0
    module load boost/1.73.0-release blaze/master pybind11/2.4.3

    srun dist_conv1d_4_test

    OR:

    #!/bin/bash
    #SBATCH -N 4
    #SBATCH -n 4
    #SBATCH -p marvin
    #SBATCH --time=72:00:00
    #SBATCH --job-name=conv_%j
    #SBATCH --output=res-%j.txt
    #SBATCH --error=error-%j.txt

    activate pyconda
    srun python conv.py

    and we do this:
    sbatch ~/.../src.sh
    in the directory that our executable exists