Pigz 2.4

Basic information

Installation

  1. Run:

    $ wget https://zlib.net/pigz/pigz-2.4.tar.gz
    $ tar xvf pigz-2.4.tar.gz
    $ cd pigz-2.4
    

    The compiler used here is Intel 2019, therefore, modify the makefile like this:

    CC=icc
    CXX=icpc
    CFLAGS=-O3 -xHost -ipo -Wall -Wextra -Wno-unknown-pragmas
    

    Then compile:

    $ module load intel/19.0.4
    $ make -j4
    

    Install it:

    $ sudo mkdir -p /share/apps/pigz/2.4/intel/19.0.4/bin
    $ sudo cp pigz unpigz /share/apps/pigz/2.4/intel/19.0.4/bin
    
  2. Create and place the needed module file. Create a file with the following content:

    #%Module1.0####################################################################
    ##
    ## module load pigz/2.4_intel-19.0.4
    ##
    ## /share/apps/modules/pigz/2.4_intel-19.0.4
    ## Written by Hamilton Tobon Mosquera.
    ##
    
    proc ModulesHelp {} {
             global version modroot
             puts stderr "Sets the environment for using Parallel Gzip 2.4, \
             \nin the shared directory /share/apps/pigz/2.4/intel/19.0.4, \
             \nbuilt with Intel 19.0.4.\n"
    }
    
    module-whatis "(Name________) pigz"
    module-whatis "(Version_____) 2.4"
    module-whatis "(Compilers___) intel-19.0.4"
    module-whatis "(System______) x86_64-redhat-linux"
    module-whatis "(Libraries___) "
    
    # for Tcl script use only
    set         topdir        /share/apps/pigz/2.4/intel/19.0.4
    set         version       2.4
    set         sys           x86_64-redhat-linux
    
    conflict pigz
    
    prepend-path   PATH            $topdir/bin
    

    Create the needed folder and place it:

    $ sudo mkdir /share/apps/modules/pigz
    $ sudo mv 2.4_intel-19.0.4 /share/apps/modules/pigz/
    

Authors