Restore nc_perf/CMakeLists.txt

This commit is contained in:
Dennis Heimbigner 2019-05-25 12:15:56 -06:00
parent 8d11b80df3
commit 7901353cf5
2 changed files with 48 additions and 5 deletions

View File

@ -12,12 +12,11 @@
#include <hdf5internal.h>
#include <math.h> /* For pow() used below. */
#undef REPORTCHUNKING
#ifdef REPORTCHUNKING
#ifdef LOGGING
static void reportchunking(const char* title, NC_VAR_INFO_T* var)
{
int i;
fprintf(stderr,"XXX: %s: chunksizes var=%s sizes=",title,var->hdr.name);
fprintf(stderr,"LOG: %s: chunksizes var=%s sizes=",title,var->hdr.name);
for(i=0;i<var->ndims;i++) {
if(i > 0) fprintf(stderr,",");
fprintf(stderr,"%ld",(unsigned long)var->chunksizes[i]);
@ -235,7 +234,7 @@ nc4_find_default_chunksizes2(NC_GRP_INFO_T *grp, NC_VAR_INFO_T *var)
}
}
#ifdef REPORTCHUNKING
#ifdef LOGGING
reportchunking("find_default: ",var);
#endif
return NC_NOERR;
@ -741,7 +740,7 @@ nc_def_var_extra(int ncid, int varid, int *shuffle, int *deflate,
return retval;
}
#ifdef REPORTCHUNKING
#ifdef LOGGING
{int dfalt=(chunksizes == NULL);
reportchunking(dfalt?"extra: default: ":"extra: user: ",var);
}

44
nc_perf/CMakeLists.txt Normal file
View File

@ -0,0 +1,44 @@
# Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014,
# 2015, 2016, 2017, 2018
# University Corporation for Atmospheric Research/Unidata.
# See netcdf-c/COPYRIGHT file for more info.
build_bin_test(bm_file)
build_bin_test(tst_chunks3)
build_bin_test(tst_ar4)
build_bin_test(tst_ar4_4d)
build_bin_test(bm_many_objs)
build_bin_test(tst_h_many_atts)
build_bin_test(bm_many_atts)
build_bin_test(tst_files2)
build_bin_test(tst_knmi)
build_bin_test(bm_netcdf4_recs)
build_bin_test(bigmeta)
build_bin_test(openbigmeta)
add_bin_test(tst_ar4_3d)
add_bin_test(tst_create_files)
add_bin_test(tst_files3)
add_bin_test(tst_mem)
add_bin_test(tst_wrf_reads)
add_bin_test(tst_attsperf)
add_sh_test(run_knmi_bm.sh)
add_sh_test(perftest.sh)
add_sh_test(run_tst_chunks.sh)
add_sh_test(run_bm_elena.sh))
IF(BUILD_UTILITIES)
add_sh_test(run_bm_test1.sh)
add_sh_test(run_bm_test2.sh)
# This will run a parallel I/O benchmark for parallel builds.
IF(TEST_PARALLEL4)
add_sh_test(run_par_bm_test.sh)
ENDIF()
ENDIF()
ADD_EXTRA_DIST(run_par_bm_test.sh.in run_knmi_bm.sh CMakeLists.txt
perftest.sh run_bm_test1.sh run_bm_test2.sh)