Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97287079
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, Jan 4, 01:46
Size
611 B
Mime Type
text/x-shellscript
Expires
Mon, Jan 6, 01:46 (2 d)
Engine
blob
Format
Raw Data
Handle
23302057
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