Skip to content

Cmake build error on windows 10 (fatal error C1001) #9470

@guileryu01

Description

@guileryu01

System information

  • Have I written custom code: No
  • OS Platform and Distribution: Windows 10
  • TensorFlow installed from:source
  • TensorFlow version:master
  • Bazel version:NA
  • CUDA/cuDNN version:8.0/5.1
  • GPU model and memory:GTX 1080
  • Exact command to reproduce:MSBuild /p:Configuration=Release tf_python_build_pip_package.vcxproj

Describe the problem

I was following cmake build instruction
https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/cmake
to build python package with GPU support using visual studio 2015 Update 3. It took a few hours until I hit fatal error C1001.

logs

c:\work\libraries_local\tensorflow\tensorflow\core\kernels\reduction_ops_gpu.cu.cc(64): fatal error C1001: An internal error has occurred in the compiler. [C:\work\libraries_local\tensorflow\tensorflow\contrib\cmake\build\tf_core_gpu_kernels.vcxproj]
  
  (compiler file 'f:\dd\vctools\compiler\utc\src\p2\main.c', line 255)
  
   To work around this problem, try simplifying or changing the program near the locations listed above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions