To create the bindings:
- Build nvCOMP.
- Modify
setup.pyto point to your generated nvcompinclude&libdirectories. Also modify to point to your corresponding CUDA SDK directories as well. This is currently only tested on Windows, but should work the same on Linux. - (on windows) make sure you are in MSVC command prompt context. You should be able to type
clinto the command line and see the MSVC compiler. This hasn't been tested with MinGW or cygwin. - Run:
python setup.py build_ext --inplace. This will generate a.pydfile that you can copy intosite-packages.
For example usages / unit tests using PyCUDA, look in examples directory.
- LZ4Compressor / LZ4Decompressor
- CascadedCompressor / CascadedDecompressor
- C-API ('low-level') access to LZ4 compression/decompression functions