Giter VIP home page Giter VIP logo

btnc / distro-win Goto Github PK

View Code? Open in Web Editor NEW

This project forked from torch/distro

24.0 24.0 4.0 319 KB

Torch installation in a self-contained folder for windows with msvc, and most changes have already been merged to torch/distro. However since torch is decommissioned in favor of pytorch, this repository is no longer maintained.

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

CMake 66.39% Shell 16.04% Batchfile 16.78% Lua 0.79%

distro-win's People

Contributors

alexbw avatar apaszke avatar artcg avatar atcold avatar babo avatar borisfom avatar btnc avatar chriscummins avatar fredowski avatar gustavla avatar howard0su avatar hughperkins avatar justinnazari avatar knhuq avatar linusu avatar lucasb-eyer avatar lukeyeager avatar luoq avatar mnogu avatar nicolasvasilache avatar nithishdivakar avatar politeles avatar rsnk96 avatar rufflewind avatar sayakbiswas avatar soumith avatar szagoruyko avatar techraf avatar vavrusa avatar wtfuzz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

distro-win's Issues

image and qt* packages are failed to build with MSVC 2015 due to conda download wrong dependencies

Image package is failed to build on 2015 because jpeg.lib contains unresolved references to __iob_func, fprintf, and fscanf. After some investigation, I found that conda installs packages which may not match the current compiler version (in my case, jpeg [vc9] was installed instead of jpeg [vc14]). Due to the internal changes of MSVC2015's standard libraries, library files built by previous MSVC versions cannot be linked. The following patch solves this issue.

msvc2015_build.patch.txt

install.bat fails

I am building with current GitHub version using https://github.com/BTNC/distro-win/blob/master/win-files/README.md instruction. I have VS2015, conda, Git and cmake installed.

install.bat is failing with the following error:
+++++++ Installing common lua packages
cl /nologo /MD /O2 -c -Fosrc/lfs.obj -IJ:/./install/include src/lfs.c
lfs.c
src/lfs.c(84): warning C4005: 'luaL_newlib': macro redefinition
J:/./install/include\lauxlib.h(125): note: see previous definition of 'luaL_newlib'
link -dll -def:lfs.def -out:lfs.dll J:/./install/lib/lua51.lib src/lfs.obj
Microsoft (R) Incremental Linker Version 14.00.24213.1
Copyright (C) Microsoft Corporation. All rights reserved.

lfs.obj : warning LNK4197: export 'luaopen_lfs' specified multiple times; using first specification
Creating library lfs.lib and object lfs.exp
The directory name is invalid.

Error: Failed move: could not delete J:.\install\luarocks\systree/lib/luarocks/rocks/luafilesystem/1.6.3-1/lib/lfs.dll
after copy.
+++++++ Installation error!

Any suggestions on how to fix this problem?

__half has no member x

distrowin
any help highly appreciated, I know nothing about cmake someone said that I should add a build directive __CUDA_NO_HALF_OPERATORS__ no idea how.

Error: Unsatisfiable package specifications.

+++++++ Installing openblas by conda, since there is no blas library specified
Fetching package metadata: ......
Solving package specifications: ..
Error: Unsatisfiable package specifications.

Hi, it occurs when I am running install.bat. Is that a version problem? My conda version is 3.10.0.

git package lost issues?

+++++++ Creating torch-activate.cmd luajit.cmd luarocks.cmd cmake.cmd
+++++++ Setup succeed!
+++++++ Updating submodules
fatal: Not a git repository (or any of the parent directories): .git
+++++++ Installing common lua packages

Error: File not found: rockspecs\luafilesystem-1.6.3-1.rockspec
+++++++ Installation error!

Some path corrections to make it compile

I have not patched lua torch for windows ever since it is decommissioned, so this repository is a little bit older than the official torch/distro repository.

Checklist:

  1. conda path
    New conda distributions may change the default conda command path. Some 3rd libraries' paths are constructed in these line, and the parts are defined in these lines, while CONDA_CMD is defined in this line.
    Current script assumes the conda command is in (the conda dir like I:\Developer\Anaconda3)\Scripts\conda.exe. If it is not your case in your environment, you will have to alter those lines a little bit according to your environment to construct correct paths.

  2. wineditline version
    winedit is updated from time to time and the older versions are not kept online, so you will have to update this line, the wineditline version if the old version is removed, and delete the wineditline.zip from directory win-files\3rd if it exists. exe\trepl\trepl-scm-1.rockspec should also be updated to use new version wineditline

Good luck!

MSVC error C2440: 'type cast': cannot convert from 'THHalf' to 'THHalf'

I am facing following error with latest torch compiled with vs2015:
THTensorCopy.c(7): error C2440: 'type cast': cannot convert from 'THHalf' to 'THHalf'
THTensorCopy.c(39): error C2440: 'type cast': cannot convert from 'THHalf' to 'THHalf'

I am not sure how to fix it for msvc. Any help is appreciated. Thanks!

extreme slow to build

since nmake doesn't support parallel build, build is very slow especial building cuda projects.

One possible solution is integrating Ninja which has built-in support for parallel build in all platforms. this will also help reduce the needs to have the rockspec file explicit to specify cmake command in order to support parallel build. We can make luarocks to detect Ninja if it is there, we can -G "Ninja" instead. thoughts?

Have to run torch-activated.cmd

It seems if I need to use torch, i have to run the 'torch-activate.cmd' every time, and should start from the install path.

Could not find Lua

Hi,

I am installing Torch.

To do this, I use VS Prompt command but the install.bat returns this error :
image
image

Can you help me please to solve this problem ?

Thank you !

install error with wineditline

Hi,

I've encountered installation error with both x86 and x64 installation. Both processes are terminated when compiling readline.obj.

I looked in win-files/3rd folder and found that the wineditline-2.101 folder does not exist. The wineditline.zip file unzips to a wineditline file without file extensions. Using 7-zip to open the wineditline file reveals a wineditline-2.201 folder inside, which is inconsistent with the wineditline-2.101 folder being referenced during the installation.

have problems in installing display

when i try luarocks install display,
it shows:

Installing https://raw.githubusercontent.com/torch/rocks/master/display-scm-0.rockspec
Missing dependencies for display scm-0:
   async >= 1.0 (not installed)

display scm-0 depends on async >= 1.0 (not installed)
Installing https://raw.githubusercontent.com/torch/rocks/master/async-scm-1.rockspec
Cloning into 'async'...
remote: Counting objects: 210, done.
remote: Compressing objects: 100% (184/184), done.
Rremote: Total 210 (delta 19), reused 172 (delta 19), pack-reused 0eceiving objects:  91% (192/210), 403.80 KiB | 95.00 Receiving objects:  93% (196/210), 403.80 KiB | 95.00 KiB/s
Receiving objects: 100% (210/210), 403.80 KiB | 95.00 KiB/s, done.
Resolving deltas: 100% (19/19), done.
nmake LUA_BINDIR=E:/torch/distro-win/./install/bin  LUA_LIBDIR=E:/torch/distro-win/./install/lib  LUA_INCDIR=E:/torch/distro-win/./install/include

Microsoft (R) 程序维护实用工具 12.00.21005.1 版
版权所有 (C) Microsoft Corporation。  保留所有权利。

makefile(1) : fatal error U1000: fatal error U1000: Syntax error: missing in macro call ")"
Stop.

Error: Failed installing dependency: https://raw.githubusercontent.com/torch/rocks/master/async-scm-1.rockspec - Build error: Failed building.

I'm currently using VS2013 on Win 10 x64.

update:
I tried VS2015, the same ...

Cannot luarocks install cutorch

Hi, I installed torch, but I get the following error when it tries to install cutorch:

cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="C:/Users/Andrea/distro-win/./install/bin/.." -DCMAKE_INSTALL_PREFIX="C:\Users\Andrea\distro-win.\install\luarocks\systree/lib/luarocks/rocks/cutorch/scm-1" && nmake -j$(getconf _NPROCESSORS_ONLN) install

-- The C compiler identification is MSVC 19.0.24210.0
-- The CXX compiler identification is MSVC 19.0.24210.0
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Torch7 in C:/Users/Andrea/distro-win/install
CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.7/Modules/FindCUDA.cmake:490 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

Quoted variables like "MSVC" will no longer be dereferenced when the policy
is set to NEW. Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
CMakeLists.txt:7 (FIND_PACKAGE)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v8.0 (found suitable version "8.0", minimum required is "6.5")
-- MAGMA not found. Compiling without MAGMA support
-- Autodetected CUDA architecture(s): 5.0
-- got cuda version 8.0
-- Found CUDA with FP16 support, compiling with torch.CudaHalfTensor
-- CUDA_NVCC_FLAGS: -gencode;arch=compute_50,code=sm_50;-Xcompiler /wd4819;-DCUDA_HAS_FP16=1
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/Andrea/AppData/Local/Temp/luarocks_cutorch-scm-1-130/cutorch/build

Microsoft (R) Program Maintenance Utility Version 14.00.24210.0
Copyright (C) Microsoft Corporation. All rights reserved.

NMAKE : fatal error U1065: invalid option 'j'
Stop.

Error: Build error: Failed building.

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.