Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F66811292
optim.sub
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Jun 17, 17:56
Size
611 B
Mime Type
text/x-shellscript
Expires
Wed, Jun 19, 17:56 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
18290674
Attached To
rSCINTROPARALLEL Poisson code for introduction to parallelism
optim.sub
View Options
#!/bin/bash
##SBATCH --reservation=phpc2017
##SBATCH --account=phpc2017
#SBATCH -N 1
#SBATCH -n 1
OPTIMS="-O0 -O1 -O2 -O3"
N=512
module load gcc
echo gcc > gcc.out
for _opt in ${OPTIMS} '-O3 -ftree-vectorize'
do
make clean
make CXXFLAGS="-std=c++11 ${_opt}" CXX=g++
./poisson $N| cut -f4 -d " " >> gcc.out
done
module load intel
echo icpc > intel.out
for _opt in ${OPTIMS} '-O3 -xHOST'
do
make clean
make CXXFLAGS="-std=c++11 ${_opt}" CXX=icpc
./poisson $N | cut -f4 -d " " >> intel.out
done
echo " ${OPTIMS} specific" | tr " " "\n" > header
paste header gcc.out intel.out > compilers.out
Event Timeline
Log In to Comment