Skip to content

Latest commit

 

History

History
82 lines (59 loc) · 1.48 KB

File metadata and controls

82 lines (59 loc) · 1.48 KB

COMPILE

Build in vagrant (recommended)

First clone the repository:

git clone https://github.com/csieber/hvbench

Spin up the virtual machine (this might take a while):

cd hvbench/vagrant
vagrant up

SSH into the virtual machine:

vagrant ssh

Build hvbench from source:

cd /hvbench
mkdir -p bin
cd bin
cmake ../
make

Hint: You add the -DCMAKE_BUILD_TYPE=Debug to cmake to create a debug build.

The finished build will be in hvbench/bin/bin on the host PC and in /hvbench/bin/bin on the virtual machine.

To build the docker image, execute docker build (-t(ag) is just an example):

cd /hvbench
sudo docker build -t csieber/hvbench:latest .

If you get the error lstat bin/bin/libfluid_msg.so.0.0.0: no such file or directory while building the docker image, you have to copy the libfluid_(base/msg) libraries to the bin folder:

cp /usr/lib/libfluid_base.so.0.0.0 /vagrant/bin/bin/libfluid_base.so.0.0.0
cp /usr/lib/libfluid_msg.so.0.0.0 /vagrant/bin/bin/libfluid_msg.so.0.0.0

To push it to a registry, log in and push the image.

sudo docker login https://index.docker.io/v1/
sudo docker push csieber/hvbench:latest

Build manually

Dependencies:

  • curl
  • pthread
  • event_pthreads
  • boost chrono
  • boost system
  • boost thread
  • boost_filesystem
  • fluid_msg
  • fluid_base

Compile

mkdir bin
cd bin/
cmake ../ # or cmake -DCMAKE_BUILD_TYPE=Debug ../
make

REFERENCES