<h2 dir="auto">Build Error'ing on Windows</h2>
<p dir="auto">I'm facing the following build error on Windows 10.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;E:\Projects\code-dnn\pytorch\build\INSTALL.vcxproj&quot; (default target) (1) -&gt;
&quot;E:\Projects\code-dnn\pytorch\build\ALL_BUILD.vcxproj&quot; (default target) (3) -&gt;
&quot;E:\Projects\code-dnn\pytorch\build\caffe2\AlgorithmsTest.vcxproj&quot; (default target) (4) -&gt;
&quot;E:\Projects\code-dnn\pytorch\build\caffe2\caffe2_gpu.vcxproj&quot; (default target) (22) -&gt;
(CustomBuild target) -&gt;
  Error : Internal Compiler error (codegen): &quot;there was an error in verifying the lgenfe output!&quot; [E:\Projects\code-dnn\pytorch\build\caffe2\caffe2_gpu.vcxp
roj]

    13025 Warning(s)
    1 Error(s)"><pre class="notranslate"><code class="notranslate">"E:\Projects\code-dnn\pytorch\build\INSTALL.vcxproj" (default target) (1) -&gt;
"E:\Projects\code-dnn\pytorch\build\ALL_BUILD.vcxproj" (default target) (3) -&gt;
"E:\Projects\code-dnn\pytorch\build\caffe2\AlgorithmsTest.vcxproj" (default target) (4) -&gt;
"E:\Projects\code-dnn\pytorch\build\caffe2\caffe2_gpu.vcxproj" (default target) (22) -&gt;
(CustomBuild target) -&gt;
  Error : Internal Compiler error (codegen): "there was an error in verifying the lgenfe output!" [E:\Projects\code-dnn\pytorch\build\caffe2\caffe2_gpu.vcxp
roj]

    13025 Warning(s)
    1 Error(s)
</code></pre></div>
<p dir="auto">There are no prior errors in the output of cmake.</p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Using Visual Studio 2017, Cuda 10, in a Native Tools Command Prompt:</p>
<ol dir="auto">
<li>python setup.py build develop</li>
</ol>
<h2 dir="auto">Bug</h2>
<p dir="auto">Internal compiler error on Windows with CUDA build.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error: Internal Compiler Error (codegen): &quot;there was an error in verifying the lgenfe output!&quot;

cross_entropy_op.cu
CMake Error at caffe2_gpu_generated_cross_entropy_op.cu.obj.RelWithDebInfo.cmake:279 (message):
  Error generating file
  C:/Users/tolia/AppData/Local/Temp/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/operators/./caffe2_gpu_generated_cross_entropy_op.cu.obj"><pre class="notranslate"><code class="notranslate">Error: Internal Compiler Error (codegen): "there was an error in verifying the lgenfe output!"

cross_entropy_op.cu
CMake Error at caffe2_gpu_generated_cross_entropy_op.cu.obj.RelWithDebInfo.cmake:279 (message):
  Error generating file
  C:/Users/tolia/AppData/Local/Temp/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/operators/./caffe2_gpu_generated_cross_entropy_op.cu.obj
</code></pre></div>
<h2 dir="auto">Environment</h2>
<ul dir="auto">
<li>PyTorch Version (e.g., 1.0): master</li>
<li>OS (e.g., Linux): Win10</li>
<li>How you installed PyTorch (<code class="notranslate">conda</code>, <code class="notranslate">pip</code>, source): source</li>
<li>Build command you used (if compiling from source): cmake + VS2017 (15.9.4) + Ninja</li>
<li>Python version: 3.7</li>
<li>CUDA/cuDNN version: 10.0/7</li>
<li>GPU models and configuration: Kepler + Pascal (build for Kepler+Maxwell+Pascal+Volta)</li>
</ul>
<h2 dir="auto">Additional context</h2>
<p dir="auto">Noticed several similar reports: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="364209606" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/12117" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/12117/hovercard" href="https://github.com/pytorch/pytorch/issues/12117">#12117</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="388471366" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/14872" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/14872/hovercard" href="https://github.com/pytorch/pytorch/issues/14872">#14872</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="379423240" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/13808" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/13808/hovercard" href="https://github.com/pytorch/pytorch/issues/13808">#13808</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="356570303" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/11203" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/11203/hovercard" href="https://github.com/pytorch/pytorch/issues/11203">#11203</a></p>