Repository navigation
Windows Support and Documentation #17
Description
Activity
I think its a great suggestion!
Reacted by anonymouslycn and imhappySame, I was kind of disappointed to see no mention of Windows in the download and install page.
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.
👍
You can already use TensorFlow on a Windows machine by using Docker.
Details are in this thread.
#42Reacted by Markus Stöger, Nithish, rhadar, ricardo kloss, Kern Ding, syb0rg, Chanchana Sornsoontorn, Yury Parfenov, Brans, Humberto Pereira and 14 moreReacted by Ashim MalgopeI 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.
Reacted by Erfan Noury, James Pacileo, carlos-pinto-coelho, Uğur Güney, syb0rg, Chanchana Sornsoontorn, Yury Parfenov, Brans, Julian Gilyadov, Lin LI and 11 more👍
google, give us windows support , please!
Reacted by Nithish, Ivan Karlovich, tux, [ZE], John Canessa, 安兴乐-siler, Mark Litwintschik, Franz Graf, Seyyed Hossein Hasanpour, Bear Huang and 6 more+1/0.0+1
Yeah, windows support would be super nice.
Would love to use TensorFlow on Windows (native, not in a VM).
Reacted by Ivan Karlovich, ricardo kloss, Brans, John Canessa, Mark Litwintschik, Franz Graf, Bear Huang, JerrilynZapien, Diego R. Santos, Kirtan Gajjar and 4 moreI'll take a look into whether Continuum can provide a conda package for tensorflow.
Reacted by Markus StögerJudging 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?
160 remaining items
Load more actions@KhabarlakKonstantin It seems OpenCL configuration is just added into
./configurebut not turned off by default on Windows, so please manually run that script or addexport TF_NEED_OPENCL=0beforeecho "" | ./configurepcloudy@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 finishedIs anybody else having these errors with Pragma (ignore pywrap one)?
Building with GPU and all specs in accord to readme.
I have a pr to fix this here: #5421
Reacted by Anton Cherniavskyi@guschmue Nice! Thanks for the quick response
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]#5421 will fix this as well.
Reacted by Anton CherniavskyiCan I build with GPU support using bazel?
@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
.KonstantinKhabarlak commented
on Nov 8, 2016 ContributorMore actions@meteorcloudy Adding
export TF_NEED_OPENCL=0helped me to go a little furtherNow 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 successfullyKonstantinKhabarlak commented
on Nov 8, 2016 ContributorMore actionsI'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 buildHi 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!
- locked and limited conversation to collaborators
on Nov 9, 2016 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 tensorflowFor GPU support, if you have CUDA 8.0 installed, you can install the following package instead:
C:\> pip install tensorflow-gpuNow 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!
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