Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91236072
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
Sat, Nov 9, 05:59
Size
611 B
Mime Type
text/x-shellscript
Expires
Mon, Nov 11, 05:59 (2 d)
Engine
blob
Format
Raw Data
Handle
22226683
Attached To
R7871 phys-743-exercises
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