Skip to content

Windows Support and Documentation #17

Description

@mohamedmansour

I was excited to see tensorflow, but as many other users, we are on Windows, would be nice to see this support happen. Will you accept Windows port contributions?

In the meantime, Microsoft recently released their Deep Learning toolkit which scales on multiple machines with GPUs for both Linux and Windows. https://github.com/Microsoft/CNTK

Activity

  1. janerivi commented on Nov 9, 2015

    @janerivi

    I think its a great suggestion!

  2. mysticuno commented on Nov 9, 2015

    @mysticuno

    Same, I was kind of disappointed to see no mention of Windows in the download and install page.

  3. ObviouslyGreen commented on Nov 9, 2015

    @ObviouslyGreen

    Anyone have an idea of what the major incompatibilities/accommodations are? Is it it mostly issues with file paths, etc?

    It's built with Bazel, which only supports linux/mac, but the good news is that windows support for bazel seems will be out by the end of this year.

  4. gordon-n-stevenson commented on Nov 10, 2015

    @gordon-n-stevenson

    👍

  5. Andy-P commented on Nov 10, 2015

    @Andy-P

    You can already use TensorFlow on a Windows machine by using Docker.
    Details are in this thread.
    #42

  6. AaronFriel commented on Nov 10, 2015

    @AaronFriel

    I would like to use TensorFlow on Windows without Docker, in order to use GPU compute. Using Docker in this case is not using a Windows container, but a Linux virtual machine on Hyper-V or VirtualBox, and so the GPU will not be passed through.

  7. keon commented on Nov 10, 2015

    @keon

    👍

  8. darkAlert commented on Nov 10, 2015

    @darkAlert

    google, give us windows support , please!

  9. chai2010 commented on Nov 10, 2015

    @chai2010

    +1/0.0

  10. surban commented on Nov 10, 2015

    @surban

    +1

  11. bayerj commented on Nov 10, 2015

    @bayerj

    Yeah, windows support would be super nice.

  12. sfiruch commented on Nov 10, 2015

    @sfiruch

    Would love to use TensorFlow on Windows (native, not in a VM).

  13. ahmadia commented on Nov 10, 2015

    @ahmadia

    I'll take a look into whether Continuum can provide a conda package for tensorflow.

  14. sibleyd commented on Nov 10, 2015

    @sibleyd

    Judging by the use of bazel across the documentation, I assume its a matter of waiting for bazel to support windows. Is there anything specific to Tensorflow that would need to be addressed for windows to be supported, or is just bazel?

  15. 160 remaining items

  16. meteorcloudy commented on Nov 7, 2016

    @meteorcloudy
    Member

    @KhabarlakKonstantin It seems OpenCL configuration is just added into ./configure but not turned off by default on Windows, so please manually run that script or add export TF_NEED_OPENCL=0 before echo "" | ./configure

    pcloudy@PCLOUDY1-W MSYS ~/workspace/tensorflow
    $ ./configure
    ~/workspace/tensorflow ~/workspace/tensorflow
    Please specify the location of python. [Default is /c/Program Files/Anaconda3/python]:
    Found possible Python library paths:
      C:\Program Files\Anaconda3\lib\site-packages
      C:\Program Files\Anaconda3
    Please input the desired Python library path to use.  Default is [C:\Program Files\Anaconda3\lib\site-packages]
    
    Using python library path: C:\Program Files\Anaconda3\lib\site-packages
    Junction created for util\python\python_include <<===>> C:\Program Files\Anaconda3\include
    Junction created for util\python\python_lib <<===>> C:\Program Files\Anaconda3\lib\site-packages
    Junction created for third_party\py\numpy\numpy_include <<===>> C:\Program Files\Anaconda3\lib\site-packages\numpy\core\include
    Do you wish to build TensorFlow with OpenCL support? [y/N] n
    No OpenCL support will be enabled for TensorFlow
    Configuration finished
    
  17. Carmezim commented on Nov 8, 2016

    @Carmezim
    Contributor

    Is anybody else having these errors with Pragma (ignore pywrap one)?

    Building with GPU and all specs in accord to readme.

  18. guschmue commented on Nov 8, 2016

    @guschmue

    I have a pr to fix this here: #5421

  19. Carmezim commented on Nov 8, 2016

    @Carmezim
    Contributor

    @guschmue Nice! Thanks for the quick response

  20. splinter89 commented on Nov 8, 2016

    @splinter89

    After fixing _Pragma, this is what I get in the same file:

    C:/tensorflow/tensorflow/core/kernels/parameterized_truncated_normal_op_gpu.cu.cc(168): error : more than
    one operator "/" matches these operands: [C:\tensorflow\tensorflow\contrib\cmake\build\tf_core_gpu_kernels.v
    cxproj]
    
  21. guschmue commented on Nov 8, 2016

    @guschmue

    #5421 will fix this as well.

  22. edwinlengzai commented on Nov 8, 2016

    @edwinlengzai

    Can I build with GPU support using bazel?

  23. gunan commented on Nov 8, 2016

    @gunan
    Contributor

    @edwin100394 no GPU support on windows using bazel yet.
    We are still working on it.

    On Mon, Nov 7, 2016 at 9:33 PM, edwin100394 [email protected]
    wrote:

    Can I build with GPU support using bazel?

    —
    You are receiving this because you were mentioned.
    Reply to this email directly, view it on GitHub
    #17 (comment),
    or mute the thread
    https://github.com/notifications/unsubscribe-auth/AHlCOXNRNoMFmnSPfnkTMLsRHcIcl9TXks5q8AmigaJpZM4GexU4
    .

  24. KonstantinKhabarlak commented on Nov 8, 2016

    @KonstantinKhabarlak
    Contributor

    @meteorcloudy Adding export TF_NEED_OPENCL=0 helped me to go a little further

    Now I'm getting another error:

    ERROR: C:/libs/tensorflow/tensorflow/core/BUILD:1115:1: Executing genrule //tensorflow/core:version_info_gen failed: bash failed: error executing command
      cd C:/tmp/Bazel/44EoGNou/execroot/tensorflow
      SET PATH=C:\tools;C:\tools\Anaconda;C:\tools\msys64\usr\local\bin;C:\tools\msys64\usr\bin;C:\tools\msys64\usr\bin;C:\tools\msys64\opt\bin;C:\Windows\System32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\tools\msys64\usr\bin\site_perl;C:\tools\msys64\usr\bin\vendor_perl;C:\tools\msys64\usr\bin\core_perl
      C:/tools/msys64/usr/bin/bash -c source external/bazel_tools/tools/genrule/genrule-setup.sh; tensorflow/tools/git/gen_git_source.py --generate tensorflow/tools/git/gen/spec.json tensorflow/tools/git/gen/head tensorflow/tools/git/gen/branch_ref "bazel-out/vc_14_0_x64-py3-opt/genfiles/tensorflow/core/util/version_info.cc": com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1
    Traceback (most recent call last):
      File "tensorflow/tools/git/gen_git_source.py", line 260, in <module>
        generate(args.generate)
      File "tensorflow/tools/git/gen_git_source.py", line 212, in generate
        git_version = get_git_version(data["path"])
      File "tensorflow/tools/git/gen_git_source.py", line 152, in get_git_version
        str("--work-tree=" + git_base_path), "describe", "--long", "--dirty", "--tags"
      File "C:\tools\Anaconda\lib\subprocess.py", line 626, in check_output
        **kwargs).stdout
      File "C:\tools\Anaconda\lib\subprocess.py", line 693, in run
        with Popen(*popenargs, **kwargs) as process:
      File "C:\tools\Anaconda\lib\subprocess.py", line 947, in __init__
        restore_signals, start_new_session)
      File "C:\tools\Anaconda\lib\subprocess.py", line 1224, in _execute_child
        startupinfo)
    FileNotFoundError: [WinError 2] The system cannot find the file specified
    Target //tensorflow/tools/pip_package:build_pip_package failed to build
    INFO: Elapsed time: 10.997s, Critical Path: 3.44s
    FAILED: Build did NOT complete successfully
    
  25. KonstantinKhabarlak commented on Nov 8, 2016

    @KonstantinKhabarlak
    Contributor

    I've started from scratch and I've build bazel from sources. Now it building almost till the end

    It fails at link time in the end:

    ERROR: C:/libs/tensorflow/tensorflow/python/BUILD:1907:1: Linking of rule '//tensorflow/python:_pywrap_tensorflow.so' failed: msvc_link.bat failed: error executing command
      cd C:/tmp/Bazel/44EoGNou/execroot/tensorflow
      SET PATH=external/local_config_cc/wrapper/bin
      external/local_config_cc/wrapper/bin/msvc_link.bat /DLL /WHOLEARCHIVE -pthread -m64 -Xcompilation-mode=opt -Wl,@bazel-out/vc_14_0_x64-py3-opt/bin/tensorflow/python/_pywrap_tensorflow.so-2.params: com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1169
    Warning: Unmatched arguments: -ldl -lm -ldl -lm
    Warning: Unmatched arguments: -pthread
    libversion_lib.a(version_info.o) : error LNK2005: "char const * __cdecl tf_compiler_version(void)" (?tf_compiler_version@@YAPEBDXZ) already defined in libframework_internal.lo(version_info.o)
    libversion_lib.a(version_info.o) : error LNK2005: "char const * __cdecl tf_git_version(void)" (?tf_git_version@@YAPEBDXZ) already defined in libframework_internal.lo(version_info.o)
       Creating library bazel-out/vc_14_0_x64-py3-opt/bin/tensorflow/python/_pywrap_tensorflow.lib and object bazel-out/vc_14_0_x64-py3-opt/bin/tensorflow/python/_pywrap_tensorflow.exp
    bazel-out/vc_14_0_x64-py3-opt/bin/tensorflow/python/_pywrap_tensorflow.so : fatal error LNK1169: one or more multiply defined symbols found
    ERROR: C:/libs/tensorflow/tensorflow/python/BUILD:639:1: output 'tensorflow/python/gen_control_flow_ops_py_wrappers_cc.exe' was not created
    ERROR: C:/libs/tensorflow/tensorflow/python/BUILD:698:1: output 'tensorflow/python/gen_resource_variable_ops_py_wrappers_cc.exe' was not created
    Target //tensorflow/tools/pip_package:build_pip_package failed to build
    
    
  26. mrry commented on Nov 9, 2016

    @mrry
    Contributor

    Hi folks, now that rudimentary Windows support is in place, I am going to lock this issue for new comments, but keep it open until we have a stable release. Going forward:

    • If you have an issue, please open a new issue against TensorFlow to describe your problem, and fill out the standard issue template. This will help us to track and assign the remaining work that we have to do to get TensorFlow-on-Windows released.
    • We will continue to use this issue for (rare) announcements about Windows support, so you can continue to subscribe to the issue for a low-traffic feed about improvements to TensorFlow-on-Windows.

    Once again, thanks for all your interest in TensorFlow-on-Windows, and now we're going to get back to work!

  27. locked and limited conversation to collaborators on Nov 9, 2016
  28. mrry commented on Nov 29, 2016

    @mrry
    Contributor

    Today we announced native Windows support in TensorFlow 0.12, with packages for Python 3.5. If you have installed the 64-bit version of Python 3.5 (either from Python.org or Anaconda), you can install TensorFlow with a single command:

    C:\> pip install tensorflow
    

    For GPU support, if you have CUDA 8.0 installed, you can install the following package instead:

    C:\> pip install tensorflow-gpu
    

    Now that Windows is a supported configuration, I'm going to close this issue; please open a new issue if you have problems with these packages. There are still some discrepancies between the Windows package and the other platforms, which are outlined in the release notes. We'll be working over the next few weeks to close these gaps.

    Thanks for all of your interest in TensorFlow on Windows!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions