pymtt
 All Classes Namespaces Files Functions Variables Groups
gds-demo.ini
Go to the documentation of this file.
1 [MTT]
2 hostlist = &create_hostlist("witch[21-22]", 4)
3 description = @hostlist@
4 logfile = &scratch_root()/mtt_output.log
5 submit_group_results=1
6 drain_timeout=5
7 min_disk_free=0
8 ompi_ver=1.3.3
9 web_url=https://hpc_head.voltaire.com
10 web_root=&preg_replace(&getenv("HOME"),"~" . &getenv("USER"), &scratch_root())
11 scratch_url=@web_url@/@web_root@
12 
13 # Contact Jeff to get username/password to access GDS
14 gds_user=&shell("head -1 ~/.mtt_auth")
15 gds_pw=&shell("tail -1 ~/.mtt_auth")
16 gds_url=http://open-mpi-mtt.appspot.com/
17 gds_tag=osu_&getenv("USER")
18 gds_email=&getenv("USER")@voltaire.com
19 
20 after_mtt_start_exec = <<EOT
21 #!/bin/bash
22 @PROGRAM_DIR@/bquery.pl -u @gds_user@ -p @gds_pw@ --server=@gds_url@ --query --gqls="select * from TestRunPhase where tag='@gds_tag@' and test_name='osu_latency'" --dir=&scratch_root()/@gds_tag@
23 
24 @PROGRAM_DIR@/breport.pl --dir=&scratch_root()/@gds_tag@ --dest=@gds_tag@.xls --title="@gds_tag@" --axis_x=data_message_size --axis_y=data_latency_avg --legend='$test_name-$test_case-$custom_my_dynamic_gds_field' -e @gds_email@
25 EOT
26 
27 [VBench]
28 # place to keep yaml files for mtt results
29 repository_tempdir=&scratch_root()/gds_data
30 repository_dirname_prefix=gds
31 
32 
33 [MPI Details: Open MPI]
34 
35 exec = &test_prefix_pretty()/bin/mpirun @hosts@ -np &test_np() @mca@ &test_executable_abspath() &test_argv()
36 hosts = &if(&have_hostfile(), "--hostfile " . &hostfile(),&if(&have_hostlist(), "--host " . &hostlist(), ""))
37 
38 # Example: how to save in GDS custom field (custom_my_dynamic_gds_field) in the TestResultPhase object
39 btl_openib = -mca btl openib,sm,self -x custom_my_dynamic_gds_field=ic-ib
40 btl_eth1g = -mca btl tcp,sm,self -x custom_my_dynamic_gds_field=ic-eth1g
41 
42 mca = &enumerate(\
43  "@btl_openib@ -mca mpi_paffinity_alone 1",\
44  "@btl_openib@",\
45  "@btl_eth1g@ -mca mpi_paffinity_alone 1",\
46  "@btl_eth1g@",\
47  )
48 
49 
50 #======================================================================
51 # Open MPI Vanilla
52 #======================================================================
53 
54 [MPI get: Open MPI Vanilla]
55 mpi_details = Open MPI
56 module = AlreadyInstalled
57 alreadyinstalled_dir = /opt/openmpi/&get_ini_val("MTT","ompi_ver")
58 alreadyinstalled_mpi_type = OMPI
59 
60 
61 [MPI install: openmpi-vanilla]
62 mpi_get = Open MPI Vanilla
63 module = Analyze::OMPI
64 description = Voltaire already installed MPI
65 
66 #======================================================================
67 # Test get phase
68 #======================================================================
69 
70 [Test get: dummy]
71 module = Noop
72 
73 [Test get: osu]
74 module = Download
75 download_url = http://mvapich.cse.ohio-state.edu/benchmarks/OMB-3.1.1.tgz
76 
77 [Test get: imb]
78 module = Download
79 download_url = http://software.intel.com/file/18632
80 tarball_name = IMB_3.2.tgz.tgz
81 
82 [Test get: trivial]
83 module = Trivial
84 
85 #======================================================================
86 # Test build phase
87 #======================================================================
88 
89 [Test build: dummy]
90 test_get = dummy
91 module = Noop
92 
93 [Test build: osu]
94 test_get = osu
95 save_stdout_on_success = 1
96 merge_stdout_stderr = 1
97 stderr_save_lines = 100
98 
99 module = Shell
100 shell_build_command = <<EOT
101 make CC=&test_prefix_pretty()/bin/mpicc
102 EOT
103 
104 [Test build: imb]
105 test_get = imb
106 save_stdout_on_success = 1
107 merge_stdout_stderr = 1
108 stderr_save_lines = 100
109 
110 module = Shell
111 shell_build_command = <<EOT
112 cd src
113 make -f make_ict CC=&test_prefix_pretty()/bin/mpicc clean IMB-MPI1
114 EOT
115 
116 [Test build: trivial]
117 test_get = trivial
118 module = Trivial
119 
120 
121 
122 #======================================================================
123 # Test Run phase
124 #======================================================================
125 
126 [Test run]
127 pass = &and(&cmd_wifexited(), &eq(&cmd_wexitstatus(), 0))
128 timeout = 60:00
129 save_stdout_on_pass = 1
130 merge_stdout_stderr = 1
131 stdout_save_lines = 100
132 stderr_save_lines = 100
133 np = &env_max_procs()
134 specify_module = Simple
135 
136 [Test run: trivial]
137 include_section = Test run
138 
139 test_build = trivial
140 skipped = 0
141 
142 specify_module = Simple
143 simple_first:tests = &find_executables(".")
144 vbench:tag = <<EOT
145 &stringify(@INI_SECTION_NAME@,&getenv("USER"))
146 @INI_SECTION_NAME@
147 EOT
148 
149 
150 [Test run: osu]
151 include_section = Test run
152 test_build = osu
153 simple_pass:tests = osu_bw osu_latency osu_bibw
154 np = 2
155 analyze_module = OSU
156 vbench:tag = <<EOT
157 &stringify(@INI_SECTION_NAME@,'_',&getenv("USER"))
158 @INI_SECTION_NAME@
159 EOT
160 
161 [Test run: imb]
162 include_section = Test run
163 test_build = imb
164 pass = &eq(&cmd_wexitstatus(), 0)
165 # Ensure to leave this value as "-1", or performance results could be lost!
166 stdout_save_lines = -1
167 simple_pass:tests = src/IMB-MPI1
168 argv = -npmin &test_np()
169 analyze_module = IMB
170 vbench:tag = <<EOT
171 &stringify(@INI_SECTION_NAME@,&getenv("USER"))
172 @INI_SECTION_NAME@
173 EOT
174 
175 
176 #======================================================================
177 # Reporter phase
178 #======================================================================
179 
180 [Reporter: text file backup]
181 module = TextFile
182 
183 textfile_filename = $phase-$section-$mpi_name-$mpi_version.txt
184 textfile_summary_header = <<EOT
185 hostname: &shell("hostname")
186 uname: &shell("uname -a")
187 
188 Detailed report at &get_ini_val("mtt","scratch_url")/All_phase-summary.html
189 EOT
190 
191 textfile_summary_footer =
192 textfile_detail_header =
193 textfile_detail_footer =
194 textfile_textwrap = 78
195 email_to = &get_ini_val("mtt","gds_email")
196 email_subject = MTT test has completed, status: $overall_mtt_status
197 email_footer = <<EOT
198 
199 Test Scratch Directory is &get_ini_val("mtt","scratch_url")/All_phase-summary.html
200 Test Scratch web url: &get_ini_val("mtt","scratch_url")/
201 EOT
202 
203 [Reporter: YAML output]
204 module = MTTGDS
205 mttdatabase_realm = OMPI
206 mttdatabase_username = &get_ini_val("mtt","gds_user")
207 mttdatabase_password = &get_ini_val("mtt","gds_pw")
208 mttdatabase_platform =
209 mttdatabase_hostname = &shell("hostname")
210 mttdatabase_url = &get_ini_val("mtt","gds_url")
211 
212 
tuple hostlist
Definition: gds-demo.ini:2