Code Monkey home page Code Monkey logo

torch's Introduction

Build Status

Torch*

Torch is a scientific computing framework with wide support for machine learning algorithms. It is easy to use and efficient, thanks to an easy and fast scripting language, LuaJIT, and an underlying C/CUDA implementation.

Intel®Software Optimization for Torch

This fork is dedicated to improving Torch performance when running on CPU, in particular Intel® Xeon processors (HSW, BDW, Xeon Phi)

###Requirements Be sure you have installed the lastest MKL version: parallel_studio_xe_2017. If you could not get the new MKL release, please goto the branch autoDownloadMKL, run prepare_mkl.sh to get the MKL substitute.

###Building Before install, you should set the MKL path for cmake:

export CMAKE_INCLUDE_PATH=$CMAKE_INCLUDE_PATH:/opt/intel/mkl/include
export CMAKE_LIBRARY_PATH=$CMAKE_LIBRARY_PATH:/opt/intel/mkl/lib/intel64

Also, you need to source the mklvar.sh file like this:

source /opt/intel/mkl/bin/mklvars.sh intel64

Install this repo, which installs the torch distribution, with a lot of nice goodies.

git clone https://github.com/intel/torch.git ./torch
cd ~/torch; bash install-deps;
./install.sh     #use gcc to install torch,  or  ./install_icc.sh #use icc to install torch

By default Torch will install LuaJIT 2.1. If you want other options, you can use the command:

TORCH_LUA_VERSION=LUA51 ./install.sh
TORCH_LUA_VERSION=LUA52 ./install.sh

Cleaning

To remove all the temporary compilation files you can run:

./clean.sh

Test

You can test that all libraries are installed properly by running:

./test.sh

Tested on Ubuntu 14.04, CentOS 7. BTW, if you need to check whether the newest MKL is linked to torch, you can use this command:

ldd ./install/lib/lua/5.1/libTHNN.so

See if the mkl_rt is linked to the correct mkl library: libmkl_rt.so => /opt/intel/mkl/lib/intel64/libmkl_rt.so This step is especially important when you are using a mkl patch.

###Performance To check the performance on the convnet benchmark, refer to this page

To check the convergency on the imagenet dataset, refer to this page


* Other names and trademarks may be claimed as the property of others.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.