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 2 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
29 changes: 29 additions & 0 deletions perfkitbenchmarker/linux_packages/openssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,32 @@ 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')
vm.RemoteCommand('cd ipp-crypto')
vm.RemoteCommand('git checkout ippcp_2021.7.1')
rickit2022 marked this conversation as resolved.
Show resolved Hide resolved
vm.RemoteCommand('cd ipp-crypto/sources/ippcp/crypto_mb')
vm.RemoteCommand('cmake . -Bbuild -DCMAKE_INSTALL_PREFIX=/usr')
rickit2022 marked this conversation as resolved.
Show resolved Hide resolved

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

# Install QAT_Engine
vm.RemoteCommand('git clone https://github.com/intel/QAT_Engine.git')
vm.RemoteCommand('cd QAT_Engine')
vm.RemoteCommand('git checkout v1.2.0')
rickit2022 marked this conversation as resolved.
Show resolved Hide resolved
vm.RemoteCommand('./autogen.sh')
vm.RemoteCommand('./configure --enable-qat_sw')
vm.RemoteCommand('make -j')
vm.RemoteCommand('sudo make install')