Setting up hardware acceleration
![]()
You might have to install the workspace components of the hardware-accelerated zlib and load the GenWQE device driver.
Obtaining the code
Compile the components of the GenWQE hardware-accelerated zlib from the source code from the GitHub website.
Obtain the source code from github.com/ibm-genwqe/genwqe-user. See the wiki to be sure that you use a stable version.
After downloading the code, run the make file to generate the object code for the GenWQE user space components, including the GenWQE tools.
Loading the device driver module
If the GenWQE device driver has been compiled as a separate module, you must load it before you can use GenWQE data compression functions.
genwqe_card module with the modprobe command. There
are no module parameters.# modprobe genwqe_card
Environment variables
You can set environment variables to control the GenWQE hardware-accelerated zlib.
ZLIB_ACCELERATOR=GENWQE
ZLIB_CARD=-1
ZLIB_TRACE=0x0
ZLIB_DEFLATE_IMPL=0x41
ZLIB_INFLATE_IMPL=0x41- ZLIB_ACCELERATOR
- Sets the accelerator type. For zEDC Express, the type is
GENWQE. - ZLIB_CARD
-1, uses all accelerators that are available to the Linux® instance. Failed requests are retried on alternative accelerators.You can specify the ID of a particular virtual accelerator card to be used. The ID is the index number used in the device nodes to make the nodes unique. All other cards are ignored, and no retry on alternative cards is performed if the specified card fails. Specify an ID only if you want to test a particular card.
0uses the first card that is found by the device driver. As for specifying an individual card, all other cards are ignored.- ZLIB_TRACE
- Sets tracing bits:
- 0x1
- General trace
- 0x2
- Hardware trace
- 0x4
- Software trace
- 0x8
- Trace summary at the end of a process
- ZLIB_DEFLATE_IMPL
0x01and0x41enable hardware compression, where0x41adds an optimization setting.0x00forces software compression and is intended for experimentation, for example, for gathering performance data with and without hardware acceleration.- ZLIB_INFLATE_IMPL
0x01and0x41enable hardware decompression, where0x41adds an optimization setting.0x00forces software decompression and is intended for experimentation, for example, for gathering performance data with and without hardware acceleration.
You can find more details about these environment variables in the GenWQE wiki on GitHub at github.com/ibm-genwqe/genwqe-user/wiki/Environment Variables.