mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-30 16:10:44 +08:00
got tst_chunks3 benchmark working
This commit is contained in:
parent
c2b6d36779
commit
077a96471e
@ -86,13 +86,6 @@ tst_mem run_knmi_bm.sh
|
||||
if TEST_PARALLEL4
|
||||
TESTS += run_par_bm_test.sh
|
||||
endif # TEST_PARALLEL4
|
||||
|
||||
benchmarks: check
|
||||
./run_bm_radar_2D.sh
|
||||
./run_bm_radar_2D_compression1.sh
|
||||
./run_bm.sh
|
||||
./run_tst_chunks.sh
|
||||
./run_bm_ar4.sh
|
||||
endif # BUILD_BENCHMARKS
|
||||
|
||||
# Szip Tests (requires ncdump)
|
||||
@ -125,19 +118,18 @@ check_PROGRAMS += bigmeta openbigmeta tst_attsperf
|
||||
TESTS += tst_attsperf perftest.sh
|
||||
endif
|
||||
|
||||
EXTRA_DIST = run_par_test.sh.in run_bm.sh run_bm_test1.sh \
|
||||
run_bm_test2.sh run_bm_radar_2D.sh run_bm_radar_2D_compression1.sh \
|
||||
run_par_bm_test.sh run_bm_elena.sh run_par_bm_radar_2D.sh \
|
||||
run_bm_radar_2D_endianness1.sh run_tst_chunks.sh ref_chunks1.cdl \
|
||||
ref_chunks2.cdl run_bm_ar4.sh ref_tst_compounds.nc \
|
||||
ref_tst_xplatform2_1.nc ref_tst_xplatform2_2.nc ref_tst_dims.nc \
|
||||
ref_tst_interops4.nc run_knmi_bm.sh CMakeLists.txt run_grp_rename.sh \
|
||||
tst_h5_endians.c tst_atts_string_rewrite.c \
|
||||
tst_put_vars_two_unlim_dim.c tst_empty_vlen_unlim.c \
|
||||
run_empty_vlen_test.sh ref_hdf5_compat1.nc ref_hdf5_compat2.nc \
|
||||
ref_hdf5_compat3.nc tst_misc.sh tdset.h5 tst_szip.sh ref_szip.h5 \
|
||||
ref_szip.cdl tst_filter.sh bzip2.cdl filtered.cdl unfiltered.cdl \
|
||||
ref_bzip2.c findplugin.in perftest.sh
|
||||
EXTRA_DIST = run_par_test.sh.in run_bm.sh run_bm_test1.sh \
|
||||
run_bm_test2.sh run_bm_radar_2D.sh run_bm_radar_2D_compression1.sh \
|
||||
run_par_bm_test.sh run_bm_elena.sh run_par_bm_radar_2D.sh \
|
||||
run_bm_radar_2D_endianness1.sh run_tst_chunks.sh ref_chunks1.cdl \
|
||||
run_bm_ar4.sh ref_tst_compounds.nc ref_tst_xplatform2_1.nc \
|
||||
ref_tst_xplatform2_2.nc ref_tst_dims.nc ref_tst_interops4.nc \
|
||||
run_knmi_bm.sh CMakeLists.txt run_grp_rename.sh tst_h5_endians.c \
|
||||
tst_atts_string_rewrite.c tst_put_vars_two_unlim_dim.c \
|
||||
tst_empty_vlen_unlim.c run_empty_vlen_test.sh ref_hdf5_compat1.nc \
|
||||
ref_hdf5_compat2.nc ref_hdf5_compat3.nc tst_misc.sh tdset.h5 \
|
||||
tst_szip.sh ref_szip.h5 ref_szip.cdl tst_filter.sh bzip2.cdl \
|
||||
filtered.cdl unfiltered.cdl ref_bzip2.c findplugin.in perftest.sh
|
||||
|
||||
CLEANFILES = tst_mpi_parallel.bin cdm_sea_soundings.nc bm_chunking.nc \
|
||||
bm_radar.nc bm_radar1.nc radar_*.txt tst_floats_1D.cdl floats_1D_3.nc \
|
||||
|
@ -1,25 +0,0 @@
|
||||
netcdf tst_chunks {
|
||||
dimensions:
|
||||
dim1 = 32 ;
|
||||
dim2 = 90 ;
|
||||
dim3 = 91 ;
|
||||
variables:
|
||||
float var_contiguous(dim1, dim2, dim3) ;
|
||||
var_contiguous:_Storage = "contiguous" ;
|
||||
var_contiguous:_Endianness = "little" ;
|
||||
float var_chunked(dim1, dim2, dim3) ;
|
||||
var_chunked:_Storage = "chunked" ;
|
||||
var_chunked:_ChunkSizes = 8, 10, 13 ;
|
||||
var_chunked:_Endianness = "little" ;
|
||||
float var_compressed(dim1, dim2, dim3) ;
|
||||
var_compressed:_Storage = "chunked" ;
|
||||
var_compressed:_ChunkSizes = 8, 10, 13 ;
|
||||
var_compressed:_DeflateLevel = 1 ;
|
||||
var_compressed:_Endianness = "little" ;
|
||||
|
||||
// global attributes:
|
||||
:_NCProperties = "version=1|netcdflibversion=4.4.2-development|hdf5libversion=1.8.17" ;
|
||||
:_SuperblockVersion = 0 ;
|
||||
:_IsNetcdf4 = 1 ;
|
||||
:_Format = "netCDF-4 classic model" ;
|
||||
}
|
@ -1,17 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
if test "x$srcdir" = x ; then srcdir=`pwd`; fi
|
||||
. ../test_common.sh
|
||||
|
||||
# This shell just tests the tst_chunks3 program by running it a few
|
||||
# times to generate a simple test file. Then it uses ncdump -s to
|
||||
# check that the output is what it should be.
|
||||
|
||||
# $Id: run_tst_chunks3.sh,v 1.2 2009/02/24 01:49:12 russ Exp $
|
||||
# Russ Rew
|
||||
|
||||
if test "x$srcdir" = x ; then srcdir=`pwd`; fi
|
||||
. ../test_common.sh
|
||||
|
||||
set -e
|
||||
echo ""
|
||||
|
||||
echo "*** Running benchmarking program tst_chunks3 for tiny test file"
|
||||
compress_level=1
|
||||
dim1=6
|
||||
@ -21,8 +19,6 @@ chunk2=3
|
||||
dim3=4
|
||||
chunk3=1
|
||||
${execdir}/tst_chunks3 $compress_level $dim1 $chunk1 $dim2 $chunk2 $dim3 $chunk3
|
||||
${NCDUMP} -n tst_chunks -s tst_chunks3.nc > tst_chunks3.cdl
|
||||
diff tst_chunks3.cdl ref_chunks1.cdl
|
||||
echo '*** SUCCESS!!!'
|
||||
|
||||
echo ""
|
||||
@ -38,8 +34,6 @@ cachesize=10000000
|
||||
cachehash=10000
|
||||
cachepre=0.0
|
||||
${execdir}/tst_chunks3 $compress_level $dim1 $chunk1 $dim2 $chunk2 $dim3 $chunk3 $cachesize $cachehash $cachepre
|
||||
${NCDUMP} -n tst_chunks -s -h tst_chunks3.nc > tst_chunks3.cdl
|
||||
diff tst_chunks3.cdl ref_chunks2.cdl
|
||||
echo '*** SUCCESS!!!'
|
||||
|
||||
exit 0
|
||||
|
@ -1,3 +1,11 @@
|
||||
/* This is part of the netCDF package. Copyright 2005-2018 University
|
||||
Corporation for Atmospheric Research/Unidata See COPYRIGHT file for
|
||||
conditions of use.
|
||||
|
||||
Runs benchmarks on different chunking sizes.
|
||||
Russ Rew, Ed Hartnett, Dennis Heimbigner
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@ -9,14 +17,14 @@
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_TIMES_H
|
||||
# include <sys/times.h>
|
||||
#include <sys/times.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_TIME_H
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
#include <assert.h>
|
||||
#ifdef HAVE_SYS_RESOURCE_H
|
||||
# include <sys/resource.h>
|
||||
#include <sys/resource.h>
|
||||
#endif
|
||||
#include "nc_tests.h" /* The ERR macro is here... */
|
||||
#include "netcdf.h"
|
||||
|
Loading…
Reference in New Issue
Block a user