Skip to content

Instantly share code, notes, and snippets.

@aarmea
aarmea / RPI_PPC_exec.sh
Last active December 14, 2015 05:38
An attempt at deriving the script used to invoke Assignment 3 for Carothers' course in Parallel Programming and Computing at RPI on the provided Blue Gene/Q system
#!/bin/bash
# you should define your own $name_of_executable
$coresPerNode = 16
for nodes in 4 8 16 32 64
do
for ranksPerCore in 1 2 4
do
srun -o output-$nodes-$ranksPerCore.txt --nodes=$nodes --ntasks=$((cores*ranksPerCore*coresPerNode)) --overcommit --runjob-opts="--mapping TEDCBA" ./$name_of_executable