77 * @date 2020-09-20
88 * Created on: 20-04-24
99 *
10- * @copyright (C) 2020 by Washington State University, The University of Alabama, Argonne National Laboratory
11- * See LICENSE in top-level directory
10+ * @copyright (C) 2020 by Washington State University, The University of
11+ * Alabama, Argonne National Laboratory See LICENSE in top-level directory
1212 *
1313 */
1414
@@ -23,82 +23,77 @@ extern "C" {
2323#include "stdint.h"
2424
2525struct cusz_context {
26- bool task_construct {false};
27- bool task_reconstruct {false};
28- bool task_dryrun {false};
29- bool task_experiment {false};
30-
31- bool prep_binning {false};
32- bool prep_logtransform {false};
33- bool prep_prescan {false};
34-
35- bool use_demodata {false};
36- bool use_release_input {false};
37- bool use_anchor {false};
38- bool use_autotune_hf {true};
39- bool use_gpu_verify {false};
40-
41- bool export_book {false};
42- bool export_errctrl {false};
43-
44- bool skip_tofile {false};
45- bool skip_hf {false};
46-
47- bool report_time {false};
48- bool report_cr {false};
49- bool report_cr_est {false};
50- bool verbose {false};
51-
52- // sizes
53- uint32_t x {1 }, y {1 }, z {1 }, w {1 };
54- size_t data_len {1 };
55- int ndim {-1 };
56-
57- // filenames
58- char demodata_name [40 ];
59- char infile [500 ];
60- char original_file [500 ];
61- char opath [200 ];
62-
63- // pipeline config
64- cusz_dtype dtype {F4 };
65- cusz_mode mode {Rel };
66- double eb {0.0 };
67- int dict_size {1024 }, radius {512 };
68- int quant_bytewidth {2 }, huff_bytewidth {4 };
69-
70- // spv gather-scatter config, tmp. unused
71- float nz_density {0.2 };
72- float nz_density_factor {5 };
73-
74- // codec config
75- uint32_t codecs_in_use {0b01 };
76- int vle_sublen {512 }, vle_pardeg {-1 };
26+ bool task_construct {false};
27+ bool task_reconstruct {false};
28+ bool task_dryrun {false};
29+ bool task_experiment {false};
30+
31+ bool prep_binning {false};
32+ bool prep_logtransform {false};
33+ bool prep_prescan {false};
34+
35+ bool use_demodata {false};
36+ bool use_release_input {false};
37+ bool use_anchor {false};
38+ bool use_autotune_hf {true};
39+ bool use_gpu_verify {false};
40+
41+ bool export_book {false};
42+ bool export_errctrl {false};
43+
44+ bool skip_tofile {false};
45+ bool skip_hf {false};
46+
47+ bool report_time {false};
48+ bool report_cr {false};
49+ bool report_cr_est {false};
50+ bool verbose {false};
51+
52+ // sizes
53+ uint32_t x {1 }, y {1 }, z {1 }, w {1 };
54+ size_t data_len {1 };
55+ int ndim {-1 };
56+
57+ // filenames
58+ char demodata_name [40 ];
59+ char infile [500 ];
60+ char original_file [500 ];
61+ char opath [200 ];
62+
63+ // pipeline config
64+ cusz_dtype dtype {F4 };
65+ cusz_mode mode {Rel };
66+ double eb {0.0 };
67+ int dict_size {1024 }, radius {512 };
68+ int quant_bytewidth {2 }, huff_bytewidth {4 };
69+
70+ // spv gather-scatter config, tmp. unused
71+ float nz_density {0.2 };
72+ float nz_density_factor {5 };
73+
74+ // codec config
75+ uint32_t codecs_in_use {0b01 };
76+ int vle_sublen {512 }, vle_pardeg {-1 };
7777};
78-
7978typedef struct cusz_context cusz_context ;
80- typedef cusz_context CuszCtx ;
81- typedef cusz_context PszCtx ;
79+ typedef cusz_context pszctx ;
8280
8381void pszctx_print_document (bool full_document );
84-
85- void pszctx_parse_argv (cusz_context * ctx , int const argc , char * * const argv );
86- void pszctx_parse_length (cusz_context * ctx , const char * lenstr );
87- void pszctx_parse_control_string (cusz_context * ctx , const char * in_str , bool dbg_print );
88- void pszctx_validate (cusz_context * ctx );
89- void pszctx_load_demo_datasize (cusz_context * ctx , void * demodata_name );
90-
91- void pszctx_set_rawlen (cusz_context * ctx , size_t _x , size_t _y , size_t _z , size_t _w );
92- void pszctx_set_len (cusz_context * ctx , pszlen len );
93- void pszctx_set_report (cusz_context * ctx , const char * in_str );
94- void pszctx_set_config (cusz_context * ctx , pszrc * config );
95- void pszctx_set_radius (cusz_context * ctx , int _ );
96- void pszctx_set_huffbyte (cusz_context * ctx , int _ );
97- void pszctx_set_huffchunk (cusz_context * ctx , int _ );
98- void pszctx_set_densityfactor (cusz_context * ctx , int _ );
99-
100- void pszctx_create_from_argv (cusz_context * ctx , int const argc , char * * const argv );
101- void pszctx_create_from_string (cusz_context * ctx , const char * in_str , bool dbg_print );
82+ void pszctx_parse_argv (pszctx * ctx , int const argc , char * * const argv );
83+ void pszctx_parse_length (pszctx * ctx , const char * lenstr );
84+ void pszctx_parse_control_string (pszctx * ctx , const char * in_str , bool dbg_print );
85+ void pszctx_validate (pszctx * ctx );
86+ void pszctx_load_demo_datasize (pszctx * ctx , void * demodata_name );
87+ void pszctx_set_rawlen (pszctx * ctx , size_t _x , size_t _y , size_t _z , size_t _w );
88+ void pszctx_set_len (pszctx * ctx , pszlen len );
89+ void pszctx_set_report (pszctx * ctx , const char * in_str );
90+ void pszctx_set_config (pszctx * ctx , pszrc * config );
91+ void pszctx_set_radius (pszctx * ctx , int _ );
92+ void pszctx_set_huffbyte (pszctx * ctx , int _ );
93+ void pszctx_set_huffchunk (pszctx * ctx , int _ );
94+ void pszctx_set_densityfactor (pszctx * ctx , int _ );
95+ void pszctx_create_from_argv (pszctx * ctx , int const argc , char * * const argv );
96+ void pszctx_create_from_string (pszctx * ctx , const char * in_str , bool dbg_print );
10297
10398#ifdef __cplusplus
10499}
0 commit comments