Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows wheel for Tensorflow 1.4 CUDA9 + CUDNN7 #6

Closed
0xDaksh opened this issue Nov 5, 2017 · 24 comments
Closed

Windows wheel for Tensorflow 1.4 CUDA9 + CUDNN7 #6

0xDaksh opened this issue Nov 5, 2017 · 24 comments

Comments

@0xDaksh
Copy link

0xDaksh commented Nov 5, 2017

No description provided.

@danqing
Copy link
Contributor

danqing commented Nov 5, 2017

Unfortunately we don’t have windows machines ourselves and won’t be able to provide that. Sorry.

@danqing danqing closed this as completed Nov 5, 2017
@0xDaksh
Copy link
Author

0xDaksh commented Nov 6, 2017

@danqing can you provide instructions so that I can build it ?

@danqing
Copy link
Contributor

danqing commented Nov 6, 2017

The installation guide is here. I don't have any experience with Windows, but it looks like you need to install Bazel and use the CMake build. It also likely works for Python 3.5 only.

@0xDaksh
Copy link
Author

0xDaksh commented Nov 10, 2017

@danqing Building it today, if it works then I Will Provide it here.

@danqing
Copy link
Contributor

danqing commented Nov 10, 2017

Sounds good thanks! Lemme know if you run into issues and I'll see if I can help too.

@0xDaksh
Copy link
Author

0xDaksh commented Nov 10, 2017

@danqing it just compiled but failed, do you use any explicit commands / instructions for cuda9 and cudnn7 ?

@danqing
Copy link
Contributor

danqing commented Nov 10, 2017

What's the error?

@0xDaksh
Copy link
Author

0xDaksh commented Nov 10, 2017

@danqing
Copy link
Contributor

danqing commented Nov 10, 2017

What’s the error you saw?

@0xDaksh
Copy link
Author

0xDaksh commented Nov 10, 2017

I don't know, I compiled it a while ago but that's what happened.

@danqing
Copy link
Contributor

danqing commented Nov 10, 2017

Hmm yeah without specific errors I don't think I can tell what went wrong. If you are gonna give it another try, lemme know what problem you run into and I can see if I spot anything suspicious.

@0xDaksh
Copy link
Author

0xDaksh commented Nov 11, 2017

Okay, I'll recompile!

@0xDaksh
Copy link
Author

0xDaksh commented Nov 11, 2017

atm it is stuck at:

 Performing download step (download, verify and extract) for 'png'
  -- Downloading...
     dst='C:/Code/builds/tensorflow/tensorflow/contrib/cmake/build/downloads/libpng-1.2.53.tar.gz'
     timeout='none'
  -- Using src='https://storage.googleapis.com/libpng-public-archive/libpng-1.2.53.tar.gz'
  -- [download 0% complete]
  -- [download 1% complete]
  -- [download 2% complete]

@danqing
Copy link
Contributor

danqing commented Nov 11, 2017

Hmm stuck at download? Does the [download x% complete] thing not progress?

@0xDaksh
Copy link
Author

0xDaksh commented Nov 11, 2017

Nope, It's just stuck there.

@0xDaksh
Copy link
Author

0xDaksh commented Nov 11, 2017

So what I did, I manually downloaded the file from sourceforge rather than google storage apis, because that url was dead and replaced it. Now I restarted the build as it was stuck there.

@danqing
Copy link
Contributor

danqing commented Nov 11, 2017

Interesting... If you are talking about https://storage.googleapis.com/libpng-public-archive/libpng-1.2.53.tar.gz, it works for me..

@0xDaksh
Copy link
Author

0xDaksh commented Nov 11, 2017

then it's the routing which is dead xD

@0xDaksh
Copy link
Author

0xDaksh commented Nov 11, 2017

anyway, I downloaded that file from sourceforge and it worked. Let's see where the next error comes in!

@0xDaksh
Copy link
Author

0xDaksh commented Nov 11, 2017

These are the new errors:

c:\code\builds\tensorflow\tensorflow\contrib\cmake\build\external\eigen_archive\eigen\src\core\products\generalblockpan
elkernel.h(2006): fatal error C1002: compiler is out of heap space in pass 2 [C:\Code\builds\tensorflow\tensorflow\cont
rib\cmake\build\tf_core_kernels.vcxproj]
  example_parsing_ops.cc
c:\code\builds\tensorflow\tensorflow\contrib\cmake\build\external\eigen_archive\eigen\src\core\products\generalblockpan
elkernel.h(1902): fatal error C1002: compiler is out of heap space in pass 2 [C:\Code\builds\tensorflow\tensorflow\cont
rib\cmake\build\tf_core_kernels.vcxproj]
cl : Command line error D8040: error creating or communicating with child process [C:\Code\builds\tensorflow\tensorflow
\contrib\cmake\build\tf_core_kernels.vcxproj]

@0xDaksh
Copy link
Author

0xDaksh commented Nov 11, 2017

@danqing
Compilation Completed:

"C:\Code\builds\tensorflow\tensorflow\contrib\cmake\build\tf_tutorials_example_trainer.vcxproj" (default target) (1) ->
"C:\Code\builds\tensorflow\tensorflow\contrib\cmake\build\tf_core_gpu_kernels.vcxproj" (default target) (117) ->
(CustomBuild target) ->
  C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(1
71,5): error MSB6006: "cmd.exe" exited with code 1. [C:\Code\builds\tensorflow\tensorflow\contrib\cmake\build\tf_core_g
pu_kernels.vcxproj]


"C:\Code\builds\tensorflow\tensorflow\contrib\cmake\build\tf_tutorials_example_trainer.vcxproj" (default target) (1) ->
"C:\Code\builds\tensorflow\tensorflow\contrib\cmake\build\tf_core_kernels.vcxproj" (default target) (118) ->
(ClCompile target) ->
  c:\code\builds\tensorflow\tensorflow\contrib\cmake\build\external\eigen_archive\eigen\src\core\products\generalblockp
anelkernel.h(2006): fatal error C1002: compiler is out of heap space in pass 2 [C:\Code\builds\tensorflow\tensorflow\co
ntrib\cmake\build\tf_core_kernels.vcxproj]
  c:\code\builds\tensorflow\tensorflow\contrib\cmake\build\external\eigen_archive\eigen\src\core\products\generalblockp
anelkernel.h(1902): fatal error C1002: compiler is out of heap space in pass 2 [C:\Code\builds\tensorflow\tensorflow\co
ntrib\cmake\build\tf_core_kernels.vcxproj]
  cl : Command line error D8040: error creating or communicating with child process [C:\Code\builds\tensorflow\tensorfl
ow\contrib\cmake\build\tf_core_kernels.vcxproj]

    149 Warning(s)
    4 Error(s)

Time Elapsed 00:18:03.99

@0xDaksh
Copy link
Author

0xDaksh commented Nov 11, 2017

@danqing Trying this solution: tensorflow/tensorflow#10799

But instead of MSBuild /m:4 /p:Configuration=Release tf_python_build_pip_package.vcxproj
I used MSBuild /m:6 /p:Configuration=Release tf_python_build_pip_package.vcxproj
as I've more cores 🗡

@0xDaksh
Copy link
Author

0xDaksh commented Nov 11, 2017

@danqing after doing that, those 4 errors squashed into 1:

       "C:\Code\builds\tensorflow\tensorflow\contrib\cmake\build\tf_tutorials_example_trainer.vcxproj" (default target)
        (1) ->
       "C:\Code\builds\tensorflow\tensorflow\contrib\cmake\build\tf_cc_ops.vcxproj" (default target) (4) ->
       "C:\Code\builds\tensorflow\tensorflow\contrib\cmake\build\array_ops_gen_cc.vcxproj" (default target) (9) ->
       "C:\Code\builds\tensorflow\tensorflow\contrib\cmake\build\tf_core_lib.vcxproj" (default target) (16) ->
       "C:\Code\builds\tensorflow\tensorflow\contrib\cmake\build\snappy.vcxproj" (default target) (48) ->
       (CustomBuild target) ->
         C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.ta
       rgets(171,5): error MSB6006: "cmd.exe" exited with code 1. [C:\Code\builds\tensorflow\tensorflow\contrib\cmake\b
       uild\snappy.vcxproj]

    235 Warning(s)
    1 Error(s)

@danqing
Copy link
Contributor

danqing commented Nov 12, 2017

Seems to be a VS issue. Have you tried something like https://stackoverflow.com/questions/44024268/msbuild-error-msb6006-cmd-exe-exited-with-code-1?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants