Skip to content
This repository has been archived by the owner on Oct 15, 2019. It is now read-only.

Install Minerva

hjk41 edited this page Jun 30, 2015 · 12 revisions

Install Minerva

Requirements and Dependencies

OS

Minerva is built and tested on Ubuntu 14.04.1 LTS and Windows with Visual Studio 2013. It should also work on any *nix system, as long as you have the correct libraries installed.

Build

Build on Linux

First please copy configure.in.example as configure.in. The core Minerva library only depends on

, which should be specified by CUDA_ROOT and CUDNN_ROOT. After specifying the two variables, simply call

./build.sh

It will produce libminerva.so in release/lib folder.

Build on Windows

Minerva can also be built with Visual Studio 2013. VS_BUILD/Minerva/Minerva.sln is the solution file for Visual Studio.

Make sure you modify the project properties so they point to the right include directories and link directories, and you should be able to build it.

More on build

Build C++ MNIST example

Specify BUILD_CXX_APPS=1 in configure.in. Then run ./build.sh. You could find binary mnist_mlp and mnist_cnn in release/apps folder. Follow this tutorial on how to run the example.

Build Owl module (python interface)

Specify BUILD_OWL=1 in configure.in. Then ./build.sh. It needs following three additional dependencies:

  • python-dev
  • numpy
  • cython

You could easily install them by package manager (apt-get on ubuntu) or tools like pip. You could test out whether owl module has been successfully built by (in main directory):

source owl_environ.sh
./run_owl_shell.sh

More build configurations could be found in configure.in.example.