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

Compiler is out of heap space #10799

Closed
borablanca opened this issue Jun 17, 2017 · 5 comments
Closed

Compiler is out of heap space #10799

borablanca opened this issue Jun 17, 2017 · 5 comments
Labels
type:build/install Build and install issues

Comments

@borablanca
Copy link

I am compiling tensorflow on windows 10 laptop, i7 6700hq 16GB ram with Visual Studio 2015 and all dependencies are ok as it is explained on readme. However at the end of compilation I get the following error:

"D:\PRJ\tensorflow\tensorflow\contrib\cmake\build\tf_python_build_pip_package.vcxproj" (default target) (1) ->
"D:\PRJ\tensorflow\tensorflow\contrib\cmake\build\pywrap_tensorflow_internal.vcxproj" (default target) (3) ->
"D:\PRJ\tensorflow\tensorflow\contrib\cmake\build\pywrap_tensorflow_internal_static.vcxproj" (default target) (4) ->
"D:\PRJ\tensorflow\tensorflow\contrib\cmake\build\tf_core_kernels.vcxproj" (default target) (105) ->
(ClCompile target) ->
  d:\prj\tensorflow\tensorflow\contrib\cmake\build\external\eigen_archive\unsupported\eigen\cxx11\src/Tensor/TensorBase
.h(832): fatal error C1060: compiler is out of heap space (compiling source file D:\PRJ\tensorflow\tensorflow\core\kern
els\reverse_op.cc) [D:\PRJ\tensorflow\tensorflow\contrib\cmake\build\tf_core_kernels.vcxproj]
  d:\prj\tensorflow\tensorflow\contrib\cmake\build\external\eigen_archive\eigen\src\core\../plugins/MatrixCwiseBinaryOp
s.h(116): fatal error C1060: compiler is out of heap space (compiling source file D:\PRJ\tensorflow\tensorflow\core\ker
nels\self_adjoint_eig_v2_op.cc) [D:\PRJ\tensorflow\tensorflow\contrib\cmake\build\tf_core_kernels.vcxproj]
  d:\prj\tensorflow\tensorflow\contrib\cmake\build\external\eigen_archive\eigen\src/Core/CoreEvaluators.h(599): fatal e
rror C1060: compiler is out of heap space (compiling source file D:\PRJ\tensorflow\tensorflow\core\kernels\svd_op_doubl
e.cc) [D:\PRJ\tensorflow\tensorflow\contrib\cmake\build\tf_core_kernels.vcxproj]

How can I solve this problem?

@aselle aselle added type:bug Bug type:build/install Build and install issues stat:awaiting response Status - Awaiting response from author and removed type:bug Bug labels Jun 17, 2017
@aselle
Copy link
Contributor

aselle commented Jun 17, 2017

This seems to be a compiler bug... try following advice here.
https://stackoverflow.com/questions/43140529/compiler-is-out-of-heap-space

@borablanca
Copy link
Author

I increased the maximum number of concurrent processes and it did the job with no errors. Also with the huge decrease in compilation time: from ~60 mins to 5 mins !! I compiled with the following code by increasing the concurrent processes to 4 (where the default was 1)

D:\...\build> MSBuild /m:4 /p:Configuration=Release tf_python_build_pip_package.vcxproj

Also I want to mention as a side note that I tested both pre-compiled version of tensorflow-gpu and the version that I compiled on training a simple cnn. The speedup is very noticable. Totally worth it!

@aselle aselle removed the stat:awaiting response Status - Awaiting response from author label Jun 18, 2017
@gunan gunan closed this as completed Jun 18, 2017
@sumsuddin
Copy link

for the ones who are still suffering, take a look here.

@chrisplyn
Copy link

@borablanca how did you manage to build tensor-gpu? I am consistently failing...

@Evil-Spirit
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:build/install Build and install issues
Projects
None yet
Development

No branches or pull requests

6 participants