@@ -17,16 +17,12 @@ speccpu2017_benchmark(RATE)
17
17
# that will be processed by specpp and is common to ${PROG} and ${VALIDATOR}
18
18
# wrf_netcdf an object library for the netcdf sources
19
19
20
- # There is only one argument to the validator. Only the location
21
- # of the reference data changes. Tolerances and filenames are hard
22
- # coded.
23
- #
24
20
# ${SPECDIFF_BIN} is used to check that all the test pass in
25
21
# diffwrf_output_01.txt. We replace this with a call to `diff -b` so
26
22
# that SPEC need not be installed. The `-b` is used to ignore
27
23
# extraneous whitespace.
28
24
macro (wrf_validator )
29
- cmake_parse_arguments (_carg "" "RUN_TYPE" "" ${ARGN} )
25
+ cmake_parse_arguments (_carg "" "RUN_TYPE;WRF_OUT_FILE " "" ${ARGN} )
30
26
31
27
set (VALIDATOR wrf_validate-target_${BENCHMARK_SUITE_TYPE} )
32
28
if (NOT TARGET ${VALIDATOR} )
@@ -41,7 +37,7 @@ macro(wrf_validator)
41
37
llvm_test_verify (WORKDIR ${RUN_${_carg_RUN_TYPE}_DIR_REL}
42
38
"%S/${VALIDATOR} "
43
39
"${RUN_${_carg_RUN_TYPE} _DIR_REL}/compare/wrf_reference_01"
44
- wrfout_d01_2000-01-24_14_00_00 >
40
+ ${_carg_WRF_OUT_FILE} >
45
41
"${RUN_${_carg_RUN_TYPE} _DIR_REL}/diffwrf_output_01.txt" &&
46
42
diff -b "${RUN_${_carg_RUN_TYPE} _DIR_REL}/diffwrf_output_01.txt" "${RUN_${_carg_RUN_TYPE} _DIR_REL}/compare/diffwrf_output_01.txt"
47
43
RUN_TYPE ${_carg_RUN_TYPE}
@@ -79,19 +75,24 @@ endif ()
79
75
80
76
speccpu2017_run_test (RUN_TYPE test )
81
77
82
- wrf_validator (RUN_TYPE test )
78
+ wrf_validator (RUN_TYPE test WRF_OUT_FILE wrfout_d01_2000-01-24_12_10_00 )
83
79
84
80
## train #######################################################################
85
81
86
82
speccpu2017_run_test (RUN_TYPE train )
87
83
88
- wrf_validator (RUN_TYPE train )
84
+ wrf_validator (RUN_TYPE train WRF_OUT_FILE wrfout_d01_2000-01-24_14_00_00 )
89
85
90
86
## ref #########################################################################
91
87
92
88
speccpu2017_run_test (RUN_TYPE ref )
93
89
94
- wrf_validator (RUN_TYPE ref )
90
+ if (BENCHMARK_SUITE_TYPE STREQUAL rate )
91
+ wrf_validator (RUN_TYPE ref WRF_OUT_FILE wrfout_d01_2000-01-24_20_00_00 )
92
+ endif ()
93
+ if (BENCHMARK_SUITE_TYPE STREQUAL speed )
94
+ wrf_validator (RUN_TYPE ref WRF_OUT_FILE wrfout_d01_2000-01-24_15_00_00 )
95
+ endif ()
95
96
96
97
################################################################################
97
98
0 commit comments