Skip to content

Compressing via blosc library #3920

Answered by anagainaru
eschnett asked this question in Q&A
Discussion options

You must be logged in to vote

Blosc2 is already an operator within ADIOS2 that you can attach to your data. This is an example of using Blosc2:

        // add operations
        adios2::Operator Blosc2Op =
            adios.DefineOperator("Blosc2Compressor", adios2::ops::LosslessBlosc);

        variable.AddOperation(Blosc2Op, {{adios2::ops::blosc::key::clevel, accuracy},
                                        {adios2::ops::blosc::key::threshold, threshold},
                                        {adios2::ops::blosc::key::doshuffle, doshuffle}});

If you are interested in the internal implementation, the operator is defined here:source/adios2/operator/compress/CompressBlosc.cpp

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by eschnett
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants