项目作者: mercury-hpc

项目描述 :
Generic checksum library.
高级语言: C
项目地址: git://github.com/mercury-hpc/mchecksum.git
创建时间: 2016-09-13T16:15:43Z
项目社区:https://github.com/mercury-hpc/mchecksum

开源协议:Other

下载


What is mchecksum?

MChecksum is a generic checksum library.

Please see the accompanying LICENSE.txt file for license details.

Supported platforms

Linux / MacOS

Documentation

Please see the documentation available on the mercury website
for a quick introduction to mchecksum.

Software requirements

CRC32 and Adler32 checksums require ZLIB.
CRC32C can be used with or without HW acceleration — SSE4.2 acceleration
requires the SSE4.2 instruction set to be supported by the CPU. Improved
performance can also be achieved using the Intel(R) ISA-L library but
requires the PCLMULQDQ instruction to be supported.

Building

If you install the full sources, put the tarball in a directory where you
have permissions (e.g., your home directory) and unpack it:

  1. gzip -cd mchecksum-X.tar.gz | tar xvf -

or

  1. bzip2 -dc mchecksum-X.tar.bz2 | tar xvf -

Replace 'X' with the version number of the package.

MChecksum makes use of the CMake build-system and requires that you do an
out-of-source build. In order to do that, you must create a new build
directory and run the ccmake command from it:

  1. cd mchecksum-X
  2. mkdir build
  3. cd build
  4. ccmake .. (where ".." is the relative path to the mchecksum-X directory)

Type 'c' multiple times and choose suitable options. Recommended options are:

  1. BUILD_SHARED_LIBS ON (or OFF if the library you link
  2. against requires static libraries)
  3. BUILD_TESTING ON
  4. CMAKE_INSTALL_PREFIX /path/to/install/directory
  5. MCHECKSUM_USE_ISAL OFF (Optional)
  6. MCHECKSUM_USE_SSE4_2 ON
  7. MCHECKSUM_USE_ZLIB OFF (Optional)

Setting include directory and library paths may require you to toggle to
the advanced mode by typing 't'. Once you are done and do not see any
errors, type 'g' to generate makefiles. Once you exit the CMake
configuration screen and are ready to build the targets, do:

  1. make

(Optional) Verbose compile/build output:

This is done by inserting VERBOSE=1 in the make command. E.g.:

  1. make VERBOSE=1

Installing

Assuming that the CMAKE_INSTALL_PREFIX has been set (see previous step)
and that you have write permissions to the destination directory, do
from the build directory:

  1. make install

Testing

CTest is used to run the tests, simply run from the build directory:

  1. ctest .

(Optional) Verbose testing:

This is done by inserting -V in the ctest command. E.g.:

  1. ctest -V .

Extra verbose information can be displayed by inserting -VV. E.g.:

  1. ctest -VV .