Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added accelerated openssl installation support #5272

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions perfkitbenchmarker/linux_packages/openssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,18 @@ def YumInstall(vm):
def AptInstall(vm):
"""Installs OpenSSL on the VM."""
vm.InstallPackages('openssl libssl-dev')


def AptInstallQAT(vm):
"""Installs QAT engine for accelerated OpenSSL."""

vm.InstallPackages('autoconf build-essential libtool cmake cpuid libssl-dev pkg-config nasm')

# Install Intel® Integrated Performance Primitives Cryptography lib
vm.RemoteCommand('git clone https://github.com/intel/ipp-crypto.git && cd ipp-crypto && git checkout ippcp_2021.7.1 && cd sources/ippcp/crypto_mb && cmake . -Bbuild -DCMAKE_INSTALL_PREFIX=/usr')

# Install Intel® Multi-Buffer Crypto for IPsec Library lib
vm.RemoteCommand('git clone https://github.com/intel/intel-ipsec-mb.git && cd intel-ipsec-mb && git checkout v1.3 && make -j && sudo make install NOLDCONFIG=y')

# Install QAT_Engine
vm.RemoteCommand('git clone https://github.com/intel/QAT_Engine.git && cd QAT_Engine && git checkout v1.2.0 && ./autogen.sh && ./configure --enable-qat_sw && make -j && sudo make install')