http://torch.ch

Overview

Join the chat at https://gitter.im/torch/torch7 Build Status

Development Status

Torch is not in active developement. The functionality provided by the C backend of Torch, which are the TH, THNN, THC, THCUNN libraries is actively extended and re-written in the ATen C++11 library (source, mirror). ATen exposes all operators you would expect from torch7, nn, cutorch, and cunn directly in C++11 and includes additional support for sparse tensors and distributed operations. It is to note however that the API and semantics of the backend libraries in Torch-7 are different from the semantice provided by ATen. For example ATen provides numpy-style broadcasting while TH* dont. For information on building the forked Torch-7 libraries in C, refer to "The C interface" in pytorch/aten/src/README.md.

Need help?

Torch7 community support can be found at the following locations. As of 2019, the Torch-7 community is close to non-existent.

Torch Package Reference Manual

Torch is the main package in Torch7 where data structures for multi-dimensional tensors and mathematical operations over these are defined. Additionally, it provides many utilities for accessing files, serializing objects of arbitrary types and other useful utilities.

Torch Packages

  • Tensor Library
    • Tensor defines the all powerful tensor object that provides multi-dimensional numerical arrays with type templating.
    • Mathematical operations that are defined for the tensor object types.
    • Storage defines a simple storage interface that controls the underlying storage for any tensor object.
  • File I/O Interface Library
  • Useful Utilities
    • Timer provides functionality for measuring time.
    • Tester is a generic tester framework.
    • CmdLine is a command line argument parsing utility.
    • Random defines a random number generator package with various distributions.
    • Finally useful utility functions are provided for easy handling of torch tensor types and class inheritance.

Useful Links

Comments
  • Add support for compilation on Windows using mingw32

    Add support for compilation on Windows using mingw32

    This patch enables Torch7 compilation on Windows using mingw32 (or tdm-gcc with msys/msys2).

    The steps needed:

    1. Install torch/cwrap and torch/paths
    2. Run the following commands:
    cmake -E make_directory build
    cd build
    cmake .. -G "MSYS Makefiles" -DCMAKE_BUILD_TYPE=Release -DLUALIB=lua51.dll -DLUA_INCDIR="%LUA_INCDIR%" -DLUA_LIBDIR="%LUA_LIBDIR%" -DLUA="%LUA%"
    make
    

    Related ticket: #150. I've tested this under Windows 8.1 using msys2 and tdm-gcc-4.8, but it should work with other versions and configurations of mingw.

    opened by pkulchenko 190
  • [Roadmap] August 2015 - March 2016

    [Roadmap] August 2015 - March 2016

    Hey everyone.

    Over the last month or so, Ronan, Clement, Koray and I have been consolidating community and developer feedback, as well as thinking hard on the core design changes needed to keep Torch competitive and effective.

    We prepared a first draft of the roadmap, located here:

    https://github.com/torch/torch7/blob/master/ROADMAP.md

    Everyone is invited to read it, give their opinions, propose changes, and participate in making the roadmap more sensible in your eyes.

    We are extremely open to feedback and will incorporate any changes or additions that the majority think that are sensible.

    Looking forward to your suggestions.

    opened by soumith 59
  • Adding AVX Optimizations with Runtime Dispatch

    Adding AVX Optimizations with Runtime Dispatch

    Work in Progress.

    Initial work by Roberth Guthrie (@rguthrie3) and more additions ongoing by Keren Zhou (@jokeren)

    This speeds up our Tensor Math ops. On add, we have up to 11x speedup already, and more to come.

    opened by soumith 40
  • [Port] Portability problem introduced by THVector.c

    [Port] Portability problem introduced by THVector.c

    Check buildlog here: https://buildd.debian.org/status/package.php?p=lua-torch-torch7&suite=experimental#problem-1

    All architectures fails to build except for x86.

    opened by cdluminate 31
  • tensor:free() should only free underlying storage.

    tensor:free() should only free underlying storage.

    In Lua, explicitly calling :free() on a Tensor is currently buggy - it actually frees the THTensor struct itself in C, making any future reference to it invalid (leading to segfaults). This patch makes :free() only act on the referenced storage, but preserves the THTensor struct intact (and also maintains the ref counter to 1) — the result: the user can free a tensor-referenced storage from Lua, but the THTensor struct itself will always be handled by the GC.

    opened by clementfarabet 30
  • Memory leak when creating Tensors inside a for loop ?

    Memory leak when creating Tensors inside a for loop ?

    There might be a memory leak in the following (toy) example:

    for i=1,10000 do
      local a = torch.Tensor(10000):zero()
    end
    

    This allocates around 600MB of memory, and I can't free it afterwards, even after calling collectgarbage() several times. If I run this loop several times, more memory gets used and no way to get it back, unless closing luajit. If I add a collectgarbage() inside the for loop, everything works fine, but the loop takes 20x more time to complete.

    I understand that torch Tensors are allocated on C side, and that memory is freed when there is no more reference to the underlying data. I thought it could be a luajit problem, but using jit.off() didn't change anything.

    Any thoughts about that ? Or is the only solution to avoid Tensor creation at all price, reusing already created Tensors in situations like that ?

    opened by fmassa 23
  • torch/luarocks failing to fetch manifests

    torch/luarocks failing to fetch manifests

    Example Input: luarocks install nn

    Output:

    Warning: Failed searching manifest: Failed fetching manifest for https://raw.githubusercontent.com/torch/rocks/master - Failed downloading https://raw.githubusercontent.com/torch/rocks/master/manifest Warning: Failed searching manifest: Failed fetching manifest for https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master - Failed downloading https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/manifest

    Version: LuaRocks 2.2.0beta1

    opened by Dwood15 21
  • THAlloc/THRealloc attempt lua GC on failure

    THAlloc/THRealloc attempt lua GC on failure

    The Lua garbage collector isn't aware of torch-allocated memory, so it doesn't know when to run the GC and the user ends up having to call collectgarbage() manually from their script, or running out of memory.

    This PR lets THAlloc and THRealloc attempt lua GC if malloc/realloc fails.

    This idea is thanks to @colesbury, I just had some free time to implement it.

    To demonstrate, you can run the following

    require 'torch'
    for i=1,1000 do
      print(i)
      a = torch.FloatTensor(1000000000):zero()
    end
    

    This loop will run out of memory prior to this PR, but now the GC will be run.

    I'll add this to cutorch as will if this gets acepted.

    @soumith @andresy

    opened by adamlerer 21
  • Installation failure when running './install.sh'

    Installation failure when running './install.sh'

    The following are the error messages received after running './install.sh'

    1 error detected in the compilation of "/tmp/tmpxft_000005a7_00000000-6_THCTensorMathPairwise.cpp1.ii".
    CMake Error at THC_generated_THCTensorMathPairwise.cu.o.cmake:267 (message):
      Error generating file
      /home/vipaacc/torch/extra/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorMathPairwise.cu.o
    
    lib/THC/CMakeFiles/THC.dir/build.make:4216: recipe for target 'lib/THC/CMakeFiles/THC.dir/THC_generated_THCTensorMathPairwise.cu.o' failed
    make[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCTensorMathPairwise.cu.o] Error 1
    make[2]: *** Waiting for unfinished jobs....
    /home/vipaacc/torch/extra/cutorch/lib/THC/generic/THCTensorMath.cu(393): error: more than one operator "==" matches these operands:
                function "operator==(const __half &, const __half &)"
                function "operator==(half, half)"
                operand types are: half == half
    
    /home/vipaacc/torch/extra/cutorch/lib/THC/generic/THCTensorMath.cu(414): error: more than one operator "==" matches these operands:
                function "operator==(const __half &, const __half &)"
                function "operator==(half, half)"
                operand types are: half == half
    
    2 errors detected in the compilation of "/tmp/tmpxft_00000605_00000000-6_THCTensorMath.cpp1.ii".
    CMake Error at THC_generated_THCTensorMath.cu.o.cmake:267 (message):
      Error generating file
      /home/vipaacc/torch/extra/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorMath.cu.o
    
    
    lib/THC/CMakeFiles/THC.dir/build.make:2735: recipe for target 'lib/THC/CMakeFiles/THC.dir/THC_generated_THCTensorMath.cu.o' failed
    make[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCTensorMath.cu.o] Error 1
    CMakeFiles/Makefile2:172: recipe for target 'lib/THC/CMakeFiles/THC.dir/all' failed
    make[1]: *** [lib/THC/CMakeFiles/THC.dir/all] Error 2
    Makefile:127: recipe for target 'all' failed
    make: *** [all] Error 2
    
    Error: Build error: Failed building.
    
    opened by patrickacole 20
  • NEON detection on aarch64 / TX1

    NEON detection on aarch64 / TX1

    Torch is failing to build on ARMv8 (Tegra X1) under Ubuntu 16.04 aarch64. During configuration: -- Could not find hardware support for NEON on this machine.

    Then while building:

    [ 46%] Building C object lib/TH/CMakeFiles/TH.dir/THVector.c.o
    In file included from /tmp/luarocks_torch-scm-1-6670/torch7/lib/TH/THVector.c:2:0:
    /tmp/luarocks_torch-scm-1-6670/torch7/lib/TH/generic/THVectorDispatch.c: In function ‘THByteVector_vectorDispatchInit’:
    /tmp/luarocks_torch-scm-1-6670/torch7/lib/TH/generic/simd/simd.h:60:3: error: impossible constraint in ‘asm’
       asm volatile ( "cpuid\n\t"
       ^
    /tmp/luarocks_torch-scm-1-6670/torch7/lib/TH/generic/simd/simd.h:60:3: error: impossible constraint in ‘asm’
       asm volatile ( "cpuid\n\t"
       ^
    lib/TH/CMakeFiles/TH.dir/build.make:350: recipe for target 'lib/TH/CMakeFiles/TH.dir/THVector.c.o' failed
    

    It looks like FindARM.cmake searches /proc/cpuinfo for 'neon'. However, ARMv8 output is the following:

    Features        : fp asimd aes pmull sha1 sha2 crc32
    CPU implementer : 0x41
    CPU architecture: 8
    CPU variant     : 0x1
    CPU part        : 0xd07
    CPU revision    : 1
    Hardware        : jetson_tx1
    

    It appears like other [1][2] ARMv8 platforms may also list asimd in leui of neon in their /proc/cpuinfo.

    opened by dusty-nv 20
  • Back-compatibility deserialisation issue

    Back-compatibility deserialisation issue

    Here there is a model I've trained some time ago.

    https://engineering.purdue.edu/elab/smartEYE-data/net/17cate9filter.tar.gz

    With the latest version of torch / cunn the object is no longer deserialisable. This is awful. I can no longer access my previously trained models.

    Reverting back torch / cunn (and many more packages) to, say, 1 year ago, fixes the problem.

    th> require 'cunn';
                                                                          [0.9739s] 
    th> net = torch.load('model-127.net')
    /home/atcold/torch/install/share/lua/5.1/torch/File.lua:301: Failed to load function from
     bytecode: (binary): cannot load incompatible bytecode
    stack traceback:
        [C]: in function 'error'
        /home/atcold/torch/install/share/lua/5.1/torch/File.lua:301: in function 'readObject'
        /home/atcold/torch/install/share/lua/5.1/torch/File.lua:369: in function 'readObject'
        /home/atcold/torch/install/share/lua/5.1/nn/Module.lua:154: in function 'read'
        /home/atcold/torch/install/share/lua/5.1/torch/File.lua:351: in function 'readObject'
        /home/atcold/torch/install/share/lua/5.1/torch/File.lua:369: in function 'readObject'
        /home/atcold/torch/install/share/lua/5.1/torch/File.lua:369: in function 'readObject'
        /home/atcold/torch/install/share/lua/5.1/nn/Module.lua:154: in function 'read'
        /home/atcold/torch/install/share/lua/5.1/torch/File.lua:351: in function 'readObject'
        /home/atcold/torch/install/share/lua/5.1/torch/File.lua:369: in function 'readObject'
        /home/atcold/torch/install/share/lua/5.1/torch/File.lua:369: in function 'readObject'
        /home/atcold/torch/install/share/lua/5.1/nn/Module.lua:154: in function 'read'
        /home/atcold/torch/install/share/lua/5.1/torch/File.lua:351: in function 'readObject'
        /home/atcold/torch/install/share/lua/5.1/torch/File.lua:409: in function 'load'
        [string "net = torch.load('model-127.net')"]:1: in main chunk
        [C]: in function 'xpcall'
        /home/atcold/torch/install/share/lua/5.1/trepl/init.lua:669: in function 'repl'
        ...cold/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:199: in main chunk
        [C]: at 0x00406670  
                                                                          [0.1411s] 
    
    opened by Atcold 19
  • module 'paths' not found:

    module 'paths' not found:

    Problem using torch library on Windows: SciTE:

    
    lua: torch\init.lua:12: module 'paths' not found:
    no field package.preload['paths']
    no file '.\paths.lua'
    no file 'C:\Program Files (x86)\Lua\5.1\lua\paths.lua'
    no file 'C:\Program Files (x86)\Lua\5.1\lua\paths\init.lua'
    no file 'C:\Program Files (x86)\Lua\5.1\paths.lua'
    no file 'C:\Program Files (x86)\Lua\5.1\paths\init.lua'
    no file 'C:\Program Files (x86)\Lua\5.1\lua\paths.luac'
    no file '.\paths.dll'
    no file '.\paths51.dll'
    no file 'C:\Program Files (x86)\Lua\5.1\paths.dll'
    no file 'C:\Program Files (x86)\Lua\5.1\paths51.dll'
    no file 'C:\Program Files (x86)\Lua\5.1\clibs\paths.dll'
    no file 'C:\Program Files (x86)\Lua\5.1\clibs\paths51.dll'
    no file 'C:\Program Files (x86)\Lua\5.1\loadall.dll'
    no file 'C:\Program Files (x86)\Lua\5.1\clibs\loadall.dll'
    stack traceback:
    [C]: in function 'require'
    init.lua:12: in main chunk
    [C]: ?
    Exit code: 1
    

    do not write about Linux, I saw: Torch test.sh, /usr/bin/lua: module 'paths' not found

    opened by RamIrzaev 0
  • Trying to install Torch on MacbookPro with Apple M1

    Trying to install Torch on MacbookPro with Apple M1

    Bellow is my computer specs as well as the log upon trying to install. Could someone help ?

    image

    ` torch git:(master) ✗ ./install.sh Prefix set to /Users/laeh/torch/install Installing Lua version: LUAJIT21 CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake.

    Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

    CMake Deprecation Warning at exe/luajit-rocks/CMakeLists.txt:9 (CMAKE_MINIMUM_REQUIRED): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake.

    Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

    CMake Deprecation Warning at exe/luajit-rocks/CMakeLists.txt:10 (CMAKE_POLICY): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake.

    Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

    CMake Deprecation Warning at exe/luajit-rocks/lua-5.2/CMakeLists.txt:5 (CMAKE_MINIMUM_REQUIRED): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake.

    Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

    CMake Deprecation Warning at exe/luajit-rocks/lua-5.2/CMakeLists.txt:6 (CMAKE_POLICY): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake.

    Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

    CMake Deprecation Warning at exe/luajit-rocks/luarocks/CMakeLists.txt:3 (CMAKE_MINIMUM_REQUIRED): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake.

    Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

    CMake Deprecation Warning at exe/luajit-rocks/luarocks/CMakeLists.txt:4 (CMAKE_POLICY): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake.

    Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

    CMake Warning (dev): Policy CMP0042 is not set: MACOSX_RPATH is enabled by default. Run "cmake --help-policy CMP0042" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

    MACOSX_RPATH is not specified for the following targets:

    liblua

    This warning is for project developers. Use -Wno-dev to suppress it.

    error: /Library/Developer/CommandLineTools/usr/bin/install_name_tool: can't open file: /Users/laeh/torch/install/lib/libluajit.dylib (No such file or directory) Installing common Lua packages env MACOSX_DEPLOYMENT_TARGET=10.4 gcc -O2 -fPIC -I/Users/laeh/torch/install/include -c src/lfs.c -o src/lfs.o env MACOSX_DEPLOYMENT_TARGET=10.4 gcc -bundle -undefined dynamic_lookup -all_load -o lfs.so -L/Users/laeh/torch/install/lib src/lfs.o Updating manifest for /Users/laeh/torch/install/lib/luarocks/rocks luafilesystem 1.6.3-1 is now built and installed in /Users/laeh/torch/install/ (license: MIT/X11)

    Updating manifest for /Users/laeh/torch/install/lib/luarocks/rocks penlight scm-1 is now built and installed in /Users/laeh/torch/install/ (license: MIT/X11)

    env MACOSX_DEPLOYMENT_TARGET=10.4 gcc -O2 -fPIC -I/Users/laeh/torch/install/include -c lua_cjson.c -o lua_cjson.o env MACOSX_DEPLOYMENT_TARGET=10.4 gcc -O2 -fPIC -I/Users/laeh/torch/install/include -c strbuf.c -o strbuf.o env MACOSX_DEPLOYMENT_TARGET=10.4 gcc -O2 -fPIC -I/Users/laeh/torch/install/include -c fpconv.c -o fpconv.o env MACOSX_DEPLOYMENT_TARGET=10.4 gcc -bundle -undefined dynamic_lookup -all_load -o cjson.so -L/Users/laeh/torch/install/lib lua_cjson.o strbuf.o fpconv.o Updating manifest for /Users/laeh/torch/install/lib/luarocks/rocks lua-cjson 2.1devel-1 is now built and installed in /Users/laeh/torch/install/ (license: MIT)

    Installing core Torch packages env MACOSX_DEPLOYMENT_TARGET=10.4 gcc -O2 -fPIC -I/Users/laeh/torch/install/include -c test.c -o test.o env MACOSX_DEPLOYMENT_TARGET=10.4 gcc -bundle -undefined dynamic_lookup -all_load -o ffi/libtest.so -L/Users/laeh/torch/install/lib test.o env MACOSX_DEPLOYMENT_TARGET=10.4 gcc -O2 -fPIC -I/Users/laeh/torch/install/include -c call.c -o call.o -Idynasm env MACOSX_DEPLOYMENT_TARGET=10.4 gcc -O2 -fPIC -I/Users/laeh/torch/install/include -c ctype.c -o ctype.o -Idynasm env MACOSX_DEPLOYMENT_TARGET=10.4 gcc -O2 -fPIC -I/Users/laeh/torch/install/include -c ffi.c -o ffi.o -Idynasm ffi.c:1826:18: warning: assigning to 'char *' from 'uint8_t [8]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] data = misalignbuf.c; ^ ~~~~~~~~~~~~~ ffi.c:1858:18: warning: assigning to 'char *' from 'uint8_t [8]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] data = misalignbuf.c; ^ ~~~~~~~~~~~~~ 2 warnings generated. env MACOSX_DEPLOYMENT_TARGET=10.4 gcc -O2 -fPIC -I/Users/laeh/torch/install/include -c parser.c -o parser.o -Idynasm env MACOSX_DEPLOYMENT_TARGET=10.4 gcc -bundle -undefined dynamic_lookup -all_load -o ffi.so -L/Users/laeh/torch/install/lib call.o ctype.o ffi.o parser.o Updating manifest for /Users/laeh/torch/install/lib/luarocks/rocks luaffi scm-1 is now built and installed in /Users/laeh/torch/install/ (license: BSD)

    env MACOSX_DEPLOYMENT_TARGET=10.4 gcc -O2 -fPIC -I/Users/laeh/torch/install/include -c src/autolink.c -o src/autolink.o -Isrc/ -Ihtml/ env MACOSX_DEPLOYMENT_TARGET=10.4 gcc -O2 -fPIC -I/Users/laeh/torch/install/include -c src/buffer.c -o src/buffer.o -Isrc/ -Ihtml/ env MACOSX_DEPLOYMENT_TARGET=10.4 gcc -O2 -fPIC -I/Users/laeh/torch/install/include -c src/markdown.c -o src/markdown.o -Isrc/ -Ihtml/ env MACOSX_DEPLOYMENT_TARGET=10.4 gcc -O2 -fPIC -I/Users/laeh/torch/install/include -c src/stack.c -o src/stack.o -Isrc/ -Ihtml/ env MACOSX_DEPLOYMENT_TARGET=10.4 gcc -O2 -fPIC -I/Users/laeh/torch/install/include -c html/houdini_href_e.c -o html/houdini_href_e.o -Isrc/ -Ihtml/ env MACOSX_DEPLOYMENT_TARGET=10.4 gcc -O2 -fPIC -I/Users/laeh/torch/install/include -c html/houdini_html_e.c -o html/houdini_html_e.o -Isrc/ -Ihtml/ env MACOSX_DEPLOYMENT_TARGET=10.4 gcc -O2 -fPIC -I/Users/laeh/torch/install/include -c html/html.c -o html/html.o -Isrc/ -Ihtml/ env MACOSX_DEPLOYMENT_TARGET=10.4 gcc -O2 -fPIC -I/Users/laeh/torch/install/include -c html/html_smartypants.c -o html/html_smartypants.o -Isrc/ -Ihtml/ env MACOSX_DEPLOYMENT_TARGET=10.4 gcc -bundle -undefined dynamic_lookup -all_load -o libsundown.so -L/Users/laeh/torch/install/lib src/autolink.o src/buffer.o src/markdown.o src/stack.o html/houdini_href_e.o html/houdini_html_e.o html/html.o html/html_smartypants.o Updating manifest for /Users/laeh/torch/install/lib/luarocks/rocks sundown scm-1 is now built and installed in /Users/laeh/torch/install/ (license: BSD)

    Updating manifest for /Users/laeh/torch/install/lib/luarocks/rocks cwrap scm-1 is now built and installed in /Users/laeh/torch/install/ (license: BSD)

    Warning: unmatched variable LUALIB cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DLUALIB= -DLUA_INCDIR="/Users/laeh/torch/install/include" -DLUA_LIBDIR="/Users/laeh/torch/install/lib" -DLUADIR="/Users/laeh/torch/install/lib/luarocks/rocks/paths/scm-1/lua" -DLIBDIR="/Users/laeh/torch/install/lib/luarocks/rocks/paths/scm-1/lib" -DCMAKE_INSTALL_PREFIX="/Users/laeh/torch/install/lib/luarocks/rocks/paths/scm-1" && make

    CMake Warning (dev) in CMakeLists.txt: No project() command is present. The top-level CMakeLists.txt file must contain a literal, direct call to the project() command. Add a line of code such as

    project(ProjectName)
    

    near the top of the file, but after cmake_minimum_required().

    CMake is pretending there is a "project(Project)" command on the first line. This warning is for project developers. Use -Wno-dev to suppress it.

    CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake.

    Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

    -- Configuring done -- Generating done -- Build files have been written to: /Users/laeh/torch/pkg/paths/build Consolidate compiler generated dependencies of target paths [100%] Built target paths cd build && make install [100%] Built target paths Install the project... -- Install configuration: "Release" -- Installing: /Users/laeh/torch/install/lib/luarocks/rocks/paths/scm-1/lua/paths/init.lua -- Installing: /Users/laeh/torch/install/lib/luarocks/rocks/paths/scm-1/lib/libpaths.so Updating manifest for /Users/laeh/torch/install/lib/luarocks/rocks paths scm-1 is now built and installed in /Users/laeh/torch/install/ (license: BSD)

    Warning: unmatched variable LUALIB cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DLUA=/Users/laeh/torch/install/bin/lua -DLUALIB= -DLUA_BINDIR="/Users/laeh/torch/install/bin" -DLUA_INCDIR="/Users/laeh/torch/install/include" -DLUA_LIBDIR="/Users/laeh/torch/install/lib" -DLUADIR="/Users/laeh/torch/install/lib/luarocks/rocks/torch/scm-1/lua" -DLIBDIR="/Users/laeh/torch/install/lib/luarocks/rocks/torch/scm-1/lib" -DCMAKE_INSTALL_PREFIX="/Users/laeh/torch/install/lib/luarocks/rocks/torch/scm-1" && make -j$(getconf _NPROCESSORS_ONLN)

    CMake Warning (dev) in CMakeLists.txt: No project() command is present. The top-level CMakeLists.txt file must contain a literal, direct call to the project() command. Add a line of code such as

    project(ProjectName)
    

    near the top of the file, but after cmake_minimum_required().

    CMake is pretending there is a "project(Project)" command on the first line. This warning is for project developers. Use -Wno-dev to suppress it.

    -- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES) -- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES) -- Could NOT find OpenMP (missing: OpenMP_C_FOUND OpenMP_CXX_FOUND) CMake Deprecation Warning at lib/TH/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake.

    Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

    CMake Deprecation Warning at lib/TH/CMakeLists.txt:5 (CMAKE_POLICY): The OLD behavior for policy CMP0026 will be removed from a future version of CMake.

    The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD.

    -- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES) -- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES) -- Could NOT find OpenMP (missing: OpenMP_C_FOUND OpenMP_CXX_FOUND) CMake Error at lib/TH/cmake/FindARM.cmake:48 (STRING): STRING sub-command REGEX, mode REPLACE needs at least 6 arguments total to command. Call Stack (most recent call first): lib/TH/CMakeLists.txt:96 (FIND_PACKAGE)

    -- Could not find hardware support for NEON on this machine. -- No OMAP3 processor on this machine. -- No OMAP4 processor on this machine. -- TH_SO_VERSION: 0 -- Atomics: using GCC intrinsics -- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - iomp5 - pthread - m] -- Library mkl_intel_lp64: not found -- Checking for [mkl_intel - mkl_intel_thread - mkl_core - iomp5 - pthread - m] -- Library mkl_intel: not found -- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - guide - pthread - m] -- Library mkl_intel_lp64: not found -- Checking for [mkl_intel - mkl_intel_thread - mkl_core - guide - pthread - m] -- Library mkl_intel: not found -- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - pthread - m] -- Library mkl_intel_lp64: not found -- Checking for [mkl_intel - mkl_intel_thread - mkl_core - pthread - m] -- Library mkl_intel: not found -- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core - m] -- Library mkl_intel_lp64: not found -- Checking for [mkl_intel - mkl_sequential - mkl_core - m] -- Library mkl_intel: not found -- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core - m] -- Library mkl_intel_lp64: not found -- Checking for [mkl_intel - mkl_sequential - mkl_core - m] -- Library mkl_intel: not found -- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core - m] -- Library mkl_intel_lp64: not found -- Checking for [mkl_intel - mkl_sequential - mkl_core - m] -- Library mkl_intel: not found -- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - iomp5 - pthread - m] -- Library mkl_intel_lp64: not found -- Checking for [mkl_intel - mkl_intel_thread - mkl_core - iomp5 - pthread - m] -- Library mkl_intel: not found -- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - guide - pthread - m] -- Library mkl_intel_lp64: not found -- Checking for [mkl_intel - mkl_intel_thread - mkl_core - guide - pthread - m] -- Library mkl_intel: not found -- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - pthread - m] -- Library mkl_intel_lp64: not found -- Checking for [mkl_intel - mkl_intel_thread - mkl_core - pthread - m] -- Library mkl_intel: not found -- Checking for [mkl - guide - pthread - m] -- Library mkl: not found -- MKL library not found -- Checking for [openblas] -- Library openblas: BLAS_openblas_LIBRARY-NOTFOUND -- Checking for [openblas - pthread] -- Library openblas: BLAS_openblas_LIBRARY-NOTFOUND -- Checking for [goto2 - gfortran] -- Library goto2: BLAS_goto2_LIBRARY-NOTFOUND -- Checking for [goto2 - gfortran - pthread] -- Library goto2: BLAS_goto2_LIBRARY-NOTFOUND -- Checking for [acml - gfortran] -- Library acml: BLAS_acml_LIBRARY-NOTFOUND -- Checking for [Accelerate] -- Library Accelerate: /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/Accelerate.framework -- This BLAS uses the F2C return conventions -- Found a library with BLAS API (accelerate). -- Found a library with LAPACK API. (accelerate) CMake Deprecation Warning at lib/luaT/CMakeLists.txt:3 (CMAKE_POLICY): The OLD behavior for policy CMP0026 will be removed from a future version of CMake.

    The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD.

    -- Configuring incomplete, errors occurred! See also "/Users/laeh/torch/pkg/torch/build/CMakeFiles/CMakeOutput.log". See also "/Users/laeh/torch/pkg/torch/build/CMakeFiles/CMakeError.log".

    Error: Build error: Failed building. `

    opened by LAEH 0
  • Trying to install torch7 on raspberry pi

    Trying to install torch7 on raspberry pi

    I try to install torch7 in raspberry pi but it didn't work and i don't know how to do it.

    [email protected]:~/torch$ TORCH_LUA_VERSION=LUA52 ./install.sh
    Prefix set to /home/pi/torch/install
    Installing Lua version: LUA52
    CMake Warning (dev) in CMakeLists.txt:
      No project() command is present.  The top-level CMakeLists.txt file must
      contain a literal, direct call to the project() command.  Add a line of
      code such as
    
        project(ProjectName)
    
      near the top of the file, but after cmake_minimum_required().
    
      CMake is pretending there is a "project(Project)" command on the first
      line.
    This warning is for project developers.  Use -Wno-dev to suppress it.
    

    this is my lua version [email protected]:~/torch$ lua Lua 5.2.4 Copyright (C) 1994-2015 Lua.org, PUC-Rio

    this is my cmake version And there is some problem with 3.16 so i try with cmake version 3.10 but it didn't work too. [email protected]:~/torch$ cmake --version cmake version 3.16.3

    opened by tadaHP 0
  • Cannot install new package using luarocks install

    Cannot install new package using luarocks install

    I followed the steps provided here to install the lua torch. After installation when I tried installing new package it gives me following error.

    `Installing https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/protobuf-1.1.2-0.rockspec... Using https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/protobuf-1.1.2-0.rockspec... switching to 'build' mode Cloning into 'protobuf-lua'... fatal: Could not read from remote repository.

    Please make sure you have the correct access rights and the repository exists.

    Error: Failed cloning git repository.`

    My system is Ubuntu 20.04 Please help me to solve the error.

    opened by M-Melodious 0
Owner
Torch
Torch
H2O - the optimized HTTP/1, HTTP/2, HTTP/3 server

H2O - an optimized HTTP server with support for HTTP/1.x, HTTP/2 and HTTP/3 (experimental) Copyright (c) 2014-2019 DeNA Co., Ltd., Kazuho Oku, Tatsuhi

H2O 10.2k Nov 27, 2022
tiny HTTP parser written in C (used in HTTP::Parser::XS et al.)

PicoHTTPParser Copyright (c) 2009-2014 Kazuho Oku, Tokuhiro Matsuno, Daisuke Murase, Shigeo Mitsunari PicoHTTPParser is a tiny, primitive, fast HTTP r

H2O 1.6k Nov 23, 2022
A collection of C++ HTTP libraries including an easy to use HTTP server.

Proxygen: Facebook's C++ HTTP Libraries This project comprises the core C++ HTTP abstractions used at Facebook. Internally, it is used as the basis fo

Facebook 7.7k Nov 25, 2022
Groupware server backend with RPC/HTTP, MAPI/HTTP, IMAP, POP3 and PHP-MAPI support

Gromox is the central groupware server component of grammm. It is capable of serving as a replacement for Microsoft Exchange and compatibles. Connecti

grammm 129 Nov 20, 2022
Pushpin is a reverse proxy server written in C++ that makes it easy to implement WebSocket, HTTP streaming, and HTTP long-polling services.

Pushpin is a reverse proxy server written in C++ that makes it easy to implement WebSocket, HTTP streaming, and HTTP long-polling services. The project is unique among realtime push solutions in that it is designed to address the needs of API creators. Pushpin is transparent to clients and integrates easily into an API stack.

Fanout 3.2k Nov 24, 2022
cuehttp is a modern c++ middleware framework for http(http/https)/websocket(ws/wss).

cuehttp 简介 cuehttp是一个使用Modern C++(C++17)编写的跨平台、高性能、易用的HTTP/WebSocket框架。基于中间件模式可以方便、高效、优雅的增加功能。cuehttp基于boost.asio开发,使用picohttpparser进行HTTP协议解析。内部依赖了nl

xcyl 28 Nov 18, 2022
Gromox - Groupware server backend with MAPI/HTTP, RPC/HTTP, IMAP, POP3 and PHP-MAPI support for grommunio

Gromox is the central groupware server component of grommunio. It is capable of serving as a replacement for Microsoft Exchange and compatibles. Conne

grommunio 128 Nov 17, 2022
C++ (with python bindings) library for easily reading/writing/manipulating common animation particle formats such as PDB, BGEO, PTC. See the discussion group @ http://groups.google.com/group/partio-discuss

Partio - A library for particle IO and manipulation This is the initial source code release of partio a tool we used for particle reading/writing. It

Walt Disney Animation Studios 412 Nov 3, 2022
https://github.com/json-c/json-c is the official code repository for json-c. See the wiki for release tarballs for download. API docs at http://json-c.github.io/json-c/

\mainpage json-c Overview and Build Status Building on Unix Prerequisites Build commands CMake options Testing Building with vcpkg Linking to libjson-

json-c 2.6k Nov 18, 2022
RNNLIB is a recurrent neural network library for sequence learning problems. Forked from Alex Graves work http://sourceforge.net/projects/rnnl/

Origin The original RNNLIB is hosted at http://sourceforge.net/projects/rnnl while this "fork" is created to repeat results for the online handwriting

Sergey Zyrianov 880 Nov 10, 2022
HTTP and WebSocket built on Boost.Asio in C++11

HTTP and WebSocket built on Boost.Asio in C++11 Branch Linux/OSX Windows Coverage Documentation Matrix master develop Contents Introduction Appearance

Boost.org 3.6k Nov 24, 2022
Cross-platform, efficient, customizable, and robust asynchronous HTTP/WebSocket server C++14 library with the right balance between performance and ease of use

What Is RESTinio? RESTinio is a header-only C++14 library that gives you an embedded HTTP/Websocket server. It is based on standalone version of ASIO

Stiffstream 912 Nov 25, 2022
A C++ header-only HTTP/HTTPS server and client library

cpp-httplib A C++11 single-file header-only cross platform HTTP/HTTPS library. It's extremely easy to setup. Just include the httplib.h file in your c

null 8.2k Nov 28, 2022
Ultra fast and low latency asynchronous socket server & client C++ library with support TCP, SSL, UDP, HTTP, HTTPS, WebSocket protocols and 10K connections problem solution

CppServer Ultra fast and low latency asynchronous socket server & client C++ library with support TCP, SSL, UDP, HTTP, HTTPS, WebSocket protocols and

Ivan Shynkarenka 931 Nov 19, 2022
A modern C++ network library for developing high performance network services in TCP/UDP/HTTP protocols.

evpp Introduction 中文说明 evpp is a modern C++ network library for developing high performance network services using TCP/UDP/HTTP protocols. evpp provid

Qihoo 360 3.1k Nov 18, 2022
http request/response parser for c

HTTP Parser http-parser is not actively maintained. New projects and projects looking to migrate should consider llhttp. This is a parser for HTTP mes

Node.js 6.1k Nov 20, 2022
C++ library for creating an embedded Rest HTTP server (and more)

The libhttpserver reference manual Tl;dr libhttpserver is a C++ library for building high performance RESTful web servers. libhttpserver is built upon

Sebastiano Merlino 702 Nov 15, 2022
Mongoose Embedded Web Server Library - a multi-protocol embedded networking library with TCP/UDP, HTTP, WebSocket, MQTT built-in protocols, async DNS resolver, and non-blocking API.

Mongoose - Embedded Web Server / Embedded Networking Library Mongoose is a networking library for C/C++. It implements event-driven non-blocking APIs

Cesanta Software 8.9k Nov 21, 2022
nghttp2 - HTTP/2 C Library and tools

nghttp2 - HTTP/2 C Library This is an implementation of the Hypertext Transfer Protocol version 2 in C. The framing layer of HTTP/2 is implemented as

nghttp2 4.1k Nov 29, 2022
C library to create simple HTTP servers and Web Applications.

Onion http server library Travis status Coverity status Onion is a C library to create simple HTTP servers and Web Applications. master the developmen

David Moreno Montero 1.9k Nov 27, 2022