Tags:
create new tag
view all tags

CPU Example for using multiple processors (threads) on a single physical computer

#!/bin/bash 
#SBATCH --job-name=smp_illustration         # Job name
#SBATCH -p wn
#SBATCH -w t3wn58                           # choose particular Compute Node from wn partition
#SBATCH --ntasks=1                          # Run a single task
#SBATCH --cpus-per-task=2                   # Number of CPU cores per task
#SBATCH --mem=3gb                           # Job memory request
##SBATCH --mem-per-cpu=3072                 # example of memory request for one CPU core
#SBATCH --time=00:05:00                     # Time limit hrs:min:sec
#SBATCH --output=smp_%j.log                 # Standard output and error log

your_smp_script.sh

-- NinaLoktionova - 2019-09-24

Topic revision: r1 - 2019-09-24 - NinaLoktionova
 
This site is powered by the TWiki collaboration platform Powered by Perl This site is powered by the TWiki collaboration platformCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback