pymtt
 All Classes Namespaces Files Functions Variables Groups
oshmem.ini
Go to the documentation of this file.
1 [MTT]
2 scratch = &getenv("HOME")/mtt-scratch
3 logfile = &scratch_root()/mtt_output.log
4 
5 [MPI Details: oshmem]
6 params = -mca btl_openib_warn_default_gid_prefix 0 -mca spml yoda -mca pml ob1
7 exec = <<EOF
8 export OSHMEM_HOME=&test_prefix()
9 export EXE=&test_executable_abspath()
10 set -x
11 $OSHMEM_HOME/bin/shmemrun -np &test_np() @params@ $EXE &test_argv()
12 EOF
13 
14 #======================================================================
15 # MPI get phase
16 #======================================================================
17 
18 [MPI get: oshmem]
19 mpi_details = oshmem
20 module = SCM
21 scm_module = SVN
22 scm_url = http://svn.open-mpi.org/svn/ompi/trunk
23 
24 #======================================================================
25 # Install MPI phase
26 #======================================================================
27 
28 [MPI Install: oshmem_gcc]
29 mpi_get = oshmem
30 ompi_compiler_name = gnu
31 ompi_configure_arguments = --enable-mpirun-prefix-by-default --enable-orterun-prefix-by-default --with-openib --with-pmi --enable-oshmem --with-oshmem-param-check
32 module = OMPI
33 ompi_make_all_arguments = -j &get_processor_count()
34 ompi_autogen = 1
35 save_stdout_on_success = 1
36 merge_stdout_stderr = 1
37 
38 #======================================================================
39 # Test get phase
40 #======================================================================
41 
42 [Test get: oshmem_test_suite]
43 module = SCM
44 scm_module = SVN
45 scm_url = https://svn.open-mpi.org/svn/ompi-tests/trunk/openshmem-release-1.0d/
46 scm_clone_all = 1
47 scm_username = ...put in your username here...
48 scm_password = ...put in your password here...
49 
50 #======================================================================
51 # Test build phase
52 #======================================================================
53 
54 [Test build: oshmem_test_suite]
55 include_files = openshmem_tests_patch.ini
56 test_get = oshmem_test_suite
57 save_stdout_on_success = 1
58 merge_stdout_stderr = 1
59 module = Shell
60 
61 shell_build_command = <<EOT
62 
63 cd examples
64 cat <<EOTT > ./patch
65 &get_ini_val('Test build: oshmem_test_suite','shmem_2dheat_patch')
66 EOTT
67 patch shmem_2dheat.c ./patch
68 sed -i 's/#include <stdio.h>/#include <stdio.h>\n#include <sys\/time.h>\n/g' ./shmem_daxpy.c
69 cd ../feature_tests/C
70 cat <<EOTT > ./patch
71 &get_ini_val('Test build: oshmem_test_suite','shmem_zeroget_patch')
72 EOTT
73 patch test_shmem_zero_get.c ./patch
74 sed -i 's/#include <stdio.h>/#include <stdio.h>\n#include <sys\/time.h>\n/g' ./test_shmem_synchronization.c
75 
76 cd performance_tests/micro_benchmarks
77 sed -i 's/#include <stdio.h>/#include <stdio.h>\n#include <sys\/time.h>\n/g' ./barrier_performance.c
78 cd ../../
79 
80 make examples CC=&test_prefix_pretty()/bin/shmemcc
81 make C_feature_tests CC=&test_prefix_pretty()/bin/shmemcc
82 make micro_bench CC=&test_prefix_pretty()/bin/shmemcc
83 make F_feature_tests SHMEM_F90=&test_prefix_pretty()/bin/shmemfort
84 EOT
85 
86 
87 #======================================================================
88 # Test Run phase
89 #======================================================================
90 
91 [Test run]
92 pass = &and(&cmd_wifexited(), &eq(&cmd_wexitstatus(), 0))
93 specify_module = Simple
94 save_stdout_on_pass = 1
95 stdout_save_lines = -1
96 merge_stdout_stderr = 1
97 np = &env_max_procs()
98 
99 [oshmem_test_suite_common]
100 test_build = oshmem_test_suite
101 include_section = Test run
102 np = 2
103 timeout = 00:02:00
104 
105 [Test run: oshmem_test_suite_examples]
106 include_section = Test run
107 test_build = oshmem_test_suite
108 simple_first:tests = &find_executables("examples/")
109 simple_first:argv = &enumerate("10 10")
110 skipped = 0
111 np = 4
112 timeout = 00:02:00
113 
114 [Test run: oshmem_test_suite_C_feature_tests]
115 include_section = oshmem_test_suite_common
116 simple_first:tests = &find_executables("feature_tests/C/")
117 
118 [Test run: oshmem_test_suite_Fortran_accessibility]
119 include_section = oshmem_test_suite_common
120 simple_first:tests = &find_executables_regexp('.*[.]x$', "feature_tests/Fortran/accessibility")
121 
122 [Test run: oshmem_test_suite_Fortran_alloc]
123 include_section = oshmem_test_suite_common
124 simple_first:tests = &find_executables_regexp('.*shpalloc_0[^3].*[.]x$', "feature_tests/Fortran/alloc")
125 
126 [Test run: oshmem_test_suite_Fortran_atomic_add]
127 include_section = oshmem_test_suite_common
128 simple_first:tests = &find_executables_regexp('add_0[^45].*[.]x$', "feature_tests/Fortran/atomic")
129 
130 [Test run: oshmem_test_suite_Fortran_atomic_cswap]
131 include_section = oshmem_test_suite_common
132 simple_first:tests = &find_executables_regexp('cswap_0[^45].*[.]x$', "feature_tests/Fortran/atomic")
133 
134 [Test run: oshmem_test_suite_Fortran_atomic_fadd]
135 include_section = oshmem_test_suite_common
136 simple_first:tests = &find_executables_regexp('test_shmem_fadd.*[.]x$', "feature_tests/Fortran/atomic")
137 
138 [Test run: oshmem_test_suite_Fortran_atomic_finc]
139 include_section = oshmem_test_suite_common
140 simple_first:tests = &find_executables_regexp('finc_0[^45].*[.]x$', "feature_tests/Fortran/atomic")
141 
142 [Test run: oshmem_test_suite_Fortran_atomic_inc]
143 include_section = oshmem_test_suite_common
144 simple_first:tests = &find_executables_regexp('inc_0[^45].*[.]x$', "feature_tests/Fortran/atomic")
145 
146 [Test run: oshmem_test_suite_Fortran_atomic_swap]
147 include_section = oshmem_test_suite_common
148 simple_first:tests = &find_executables_regexp('swap_0[^45].*[.]x$', "feature_tests/Fortran/atomic")
149 
150 [Test run: oshmem_test_suite_Fortran_barrier]
151 include_section = oshmem_test_suite_common
152 simple_first:tests = &find_executables_regexp('.*barrier.*_0[^3].*[.]x$', "feature_tests/Fortran/barrier")
153 
154 [Test run: oshmem_test_suite_Fortran_collect]
155 simple_first:tests = &find_executables_regexp('.*collect_0[^4].*[.]x$', "feature_tests/Fortran/collect")
156 include_section = oshmem_test_suite_common
157 
158 [Test run: oshmem_test_suite_Fortran_reductions]
159 include_section = oshmem_test_suite_common
160 simple_first:tests = &find_executables_regexp('.*[.]x$', "feature_tests/Fortran/reductions")
161 
162 [Test run: oshmem_test_suite_Fortran_transfer]
163 include_section = oshmem_test_suite_common
164 simple_first:tests = &find_executables_regexp('test_shmem_[^pi][^ug].*[.]x$', "feature_tests/Fortran/transfer")
165 
166 [Test run: oshmem_test_suite_Fortran_transfer_put]
167 include_section = oshmem_test_suite_common
168 simple_first:tests = &find_executables_regexp('put_0[^45].*[.]x$', "feature_tests/Fortran/atomic")
169 
170 [Test run: oshmem_test_suite_Fortran_transfer_iget]
171 include_section = oshmem_test_suite_common
172 simple_first:tests = &find_executables_regexp('iget_0[^45].*[.]x$', "feature_tests/Fortran/atomic")
173 
174 [Test run: oshmem_test_suite_Fortran_synchronization]
175 include_section = oshmem_test_suite_common
176 simple_first:tests = &find_executables_regexp('(test_shmem_lock.x)|(test_shmem_synchronization.x)', "feature_tests/Fortran")
177 
178 [Test run: oshmem_test_suite_Fortran_alloc_fail]
179 pass = &and(&cmd_wifexited(), &eq(&cmd_wexitstatus(), 255))
180 include_section = oshmem_test_suite_common
181 simple_first:tests = &find_executables_regexp('.*shpalloc_03.*[.]x$', "feature_tests/Fortran/alloc")
182 
183 [Test run: oshmem_test_suite_Fortran_atomic_add_fail]
184 pass = &and(&cmd_wifexited(), &eq(&cmd_wexitstatus(), 255))
185 include_section = oshmem_test_suite_common
186 simple_first:tests = &find_executables_regexp('add_0(4|5).*[.]x$', "feature_tests/Fortran/atomic")
187 
188 [Test run: oshmem_test_suite_Fortran_atomic_cswap_fail]
189 pass = &and(&cmd_wifexited(), &eq(&cmd_wexitstatus(), 255))
190 include_section = oshmem_test_suite_common
191 simple_first:tests = &find_executables_regexp('cswap_0(4|5).*[.]x$', "feature_tests/Fortran/atomic")
192 
193 [Test run: oshmem_test_suite_Fortran_atomic_finc_fail]
194 pass = &and(&cmd_wifexited(), &eq(&cmd_wexitstatus(), 255))
195 include_section = oshmem_test_suite_common
196 simple_first:tests = &find_executables_regexp('finc_0(4|5).*[.]x$', "feature_tests/Fortran/atomic")
197 
198 [Test run: oshmem_test_suite_Fortran_atomic_inc_fail]
199 pass = &and(&cmd_wifexited(), &eq(&cmd_wexitstatus(), 255))
200 include_section = oshmem_test_suite_common
201 simple_first:tests = &find_executables_regexp('inc_0(4|5).*[.]x$', "feature_tests/Fortran/atomic")
202 
203 [Test run: oshmem_test_suite_Fortran_atomic_swap_fail]
204 pass = &and(&cmd_wifexited(), &eq(&cmd_wexitstatus(), 255))
205 include_section = oshmem_test_suite_common
206 simple_first:tests = &find_executables_regexp('swap_0(4|5).*[.]x$', "feature_tests/Fortran/atomic")
207 
208 [Test run: oshmem_test_suite_Fortran_transfer_put_fail]
209 pass = &and(&cmd_wifexited(), &eq(&cmd_wexitstatus(), 255))
210 include_section = oshmem_test_suite_common
211 simple_first:tests = &find_executables_regexp('put_0(4|5).*[.]x$', "feature_tests/Fortran/atomic")
212 
213 [Test run: oshmem_test_suite_Fortran_transfer_iget_fail]
214 pass = &and(&cmd_wifexited(), &eq(&cmd_wexitstatus(), 255))
215 include_section = oshmem_test_suite_common
216 simple_first:tests = &find_executables_regexp('iget_0(4|5).*[.]x$', "feature_tests/Fortran/atomic")
217 
218 [Test run: oshmem_test_suite_Fortran_barrier_timeout]
219 include_section = oshmem_test_suite_common
220 simple_first:tests = &find_executables_regexp('.*barrier.*_03.*[.]x$', "feature_tests/Fortran/barrier")
221 
222 [Test run: oshmem_test_suite_Fortran_collect_timeout]
223 simple_first:tests = &find_executables_regexp('.*collect_04.*[,]x$', "feature_tests/Fortran/collect")
224 include_section = oshmem_test_suite_common
225 
226 [Test run: oshmem_test_suite_performance_tests]
227 include_section = Test run
228 test_build = oshmem_test_suite
229 simple_first:tests = &find_executables_regexp('(.*barrier.*)|(.*broadcast.*)|(.*get.*)|(.*put.*)',"performance_tests/micro_benchmarks/")
230 skipped = 0
231 timeout = 00:10:00
232 
233 #======================================================================
234 # Reporter phase
235 #======================================================================
236 
237 [Reporter: text file backup]
238 module = TextFile
239 
240 textfile_filename = $phase-$section-$mpi_name-$mpi_version.txt
241 
242 textfile_summary_header = <<EOT
243 Hostname: &shell("hostname")
244 uname: &shell("uname -a")
245 Username: &shell("who am i")
246 EOT
247 
248 textfile_summary_footer = <<EOT
249 Detailed report at &get_ini_val("mtt","scratch_root")
250 EOT
251 textfile_detail_header = oshmem from ompi trunk
252 textfile_detail_footer =
253 
254 textfile_textwrap = 78
255