Giter Site home page Giter Site logo

ssameerr / torch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from intel/torch

0.0 1.0 0.0 375 KB

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.

License: BSD 3-Clause "New" or "Revised" License

CMake 63.71% Shell 19.43% Batchfile 16.10% Lua 0.76%

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

If you are root user, please use this command to install OpenBlas and other dependency:

bash install-deps

If you are not root user, please use this command to install OpenBlas from source code, and this script will add OpenBLAS to LD_LIBRARY_PATH automaticly.

. ./install-openblas.sh

Building

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

You can specify which compiler to compile the project, and the default compiler is gcc & g++.

git clone https://github.com/intel/torch.git ~/torch
cd ~/torch; bash install-deps;
./install.sh        #use gcc to install torch
./install.sh icc  #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.

More build options for install.sh

./install.sh [gcc] [avx512] [mklml] [noskip]
  • icc/gcc, default gcc
  • avx512/off, default off, avx512 will force compilers(GCC version should be greater than 4.9.2) to use AVX512F instructions to compile the framework.
  • mklml/mkl, default mkl.
  • noskip/skip,default noskip, skip means skip the openblas checking

If you want to use MKL as the default BLAS library, please activate MKL before install.sh:

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

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

torch's People

Watchers

 avatar

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.