-
Notifications
You must be signed in to change notification settings - Fork 4
/
run-matmul-test-cori.sh
45 lines (39 loc) · 1.22 KB
/
run-matmul-test-cori.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
#SBATCH -p debug
#SBATCH -N 4
#SBATCH -t 00:05:00
#SBATCH -J matmul
#SBATCH [email protected]
#SBATCH --mail-type=ALL
#SBATCH -e mysparkjob_%j.err
#SBATCH -o mysparkjob_%j.out
#SBATCH -C haswell
#module load collectl
#start-collectl.sh
module unload darshan
source setup/cori-start-alchemist.sh 2 1
method=MATMUL
# 10K by 10K double matrix is 800 MB
# 300K by 10K times 10K by 60K results in 144 GB matrix (5 alchemist nodes didn't work, oom, 10 does)
m=300000
n=10000
k=60000
# seems like if the partitions are too large, Spark will hang, so go for 2GB/partition
# 0 tells Spark to use default parallelism
#partitions=200
partitions=0
spark-submit --verbose\
--driver-memory 120G\
--executor-memory 120G\
--executor-cores 32 \
--driver-cores 32 \
--num-executors 1 \
--conf spark.driver.extraLibraryPath=$SCRATCH/alchemistSHELL/alchemist/lib\
--conf spark.executor.extraLibraryPath=$SCRATCH/alchemistSHELL/alchemist/lib\
--conf spark.eventLog.enabled=true\
--conf spark.eventLog.dir=$SCRATCH/spark/event_logs\
--class amplab.alchemist.BasicSuite\
test/target/scala-2.11/alchemist-tests-assembly-0.0.2.jar $method $m $n $k $partitions 2>&1 | tee test-matmul.log
stop-all.sh
exit
#stop-collectl.sh