<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10 Pro, 1809, 17763.379</li>
<li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: N/A</li>
<li>TensorFlow installed from (source or binary): source</li>
<li>TensorFlow version: v1.13.1</li>
<li>Python version: v3.5.0:374f501f4567</li>
<li>Installed using virtualenv? pip? conda?: pip</li>
<li>Bazel version (if compiling from source): 0.20.0</li>
<li>GCC/Compiler version (if compiling from source): Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24234.1 for x64</li>
<li>CUDA/cuDNN version: 10.0/7.5</li>
<li>GPU model and memory: NVIDIA GeForce RTX 2080 Ti</li>
</ul>
<p dir="auto"><strong>Describe the problem</strong><br>
Build of kernels:transpose_functor_gpu  fails with the following error</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="nvcc error   : 'cudafe++' died with status 0xC0000005 (ACCESS_VIOLATION)"><pre class="notranslate"><code class="notranslate">nvcc error   : 'cudafe++' died with status 0xC0000005 (ACCESS_VIOLATION)
</code></pre></div>
<p dir="auto">and this error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR: D:/tensorflow/tensorflow/core/kernels/BUILD:1687:1: C++ compilation of rule '//tensorflow/core/kernels:transpose_functor_gpu' failed (Exit 5): python.exe failed: error executing command"><pre class="notranslate"><code class="notranslate">ERROR: D:/tensorflow/tensorflow/core/kernels/BUILD:1687:1: C++ compilation of rule '//tensorflow/core/kernels:transpose_functor_gpu' failed (Exit 5): python.exe failed: error executing command
</code></pre></div>
<p dir="auto">The problem seems very similar to <a href="https://github.com/tensorflow/tensorflow/issues/27576" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/27576/hovercard">this</a> issue.</p>
<p dir="auto"><strong>Provide the exact sequence of commands / steps that you executed before running into the problem</strong></p>
<p dir="auto">(tensorflow-v1.13) d:\tensorflow&gt;python ./configure.py<br>
WARNING: The following rc files are no longer being read, please transfer their contents or import their path into one of the standard rc files:<br>
nul<br>
WARNING: Running Bazel server needs to be killed, because the startup options are different.<br>
WARNING: --batch mode is deprecated. Please instead explicitly shut down your Bazel server using the command "bazel shutdown".<br>
INFO: Invocation ID: e482c527-4d04-440e-b726-4dcee4cabbba<br>
You have bazel 0.20.0 installed.<br>
Please specify the location of python. [Default is C:\Users\admin\tensorflow-v1.13\Scripts\python.exe]:</p>
<p dir="auto">Traceback (most recent call last):<br>
File "", line 1, in <br>
AttributeError: module 'site' has no attribute 'getsitepackages'<br>
Found possible Python library paths:<br>
C:\Users\admin\tensorflow-v1.13\Lib\site-packages<br>
Please input the desired Python library path to use.  Default is [C:\Users\admin\tensorflow-v1.13\Lib\site-packages]</p>
<p dir="auto">Do you wish to build TensorFlow with XLA JIT support? [y/N]: n<br>
No XLA JIT support will be enabled for TensorFlow.</p>
<p dir="auto">Do you wish to build TensorFlow with ROCm support? [y/N]: n<br>
No ROCm support will be enabled for TensorFlow.</p>
<p dir="auto">Do you wish to build TensorFlow with CUDA support? [y/N]: y<br>
CUDA support will be enabled for TensorFlow.</p>
<p dir="auto">Please specify the CUDA SDK version you want to use. [Leave empty to default to CUDA 10.0]: 10.0</p>
<p dir="auto">Please specify the location where CUDA 10.0 toolkit is installed. Refer to README.md for more details. [Default is C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0]:</p>
<p dir="auto">Please specify the cuDNN version you want to use. [Leave empty to default to cuDNN 7]: 7.5</p>
<p dir="auto">Please specify the location where cuDNN 7 library is installed. Refer to README.md for more details. [Default is C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0]:</p>
<p dir="auto">Please specify a list of comma-separated Cuda compute capabilities you want to build with.<br>
You can find the compute capability of your device at: <a href="https://developer.nvidia.com/cuda-gpus" rel="nofollow">https://developer.nvidia.com/cuda-gpus</a>.<br>
Please note that each additional compute capability significantly increases your build time and binary size. [Default is: 3.5,7.0]: 7.5</p>
<p dir="auto">Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is /arch:AVX]: /arch:AVX2</p>
<p dir="auto">Would you like to override eigen strong inline for some C++ compilation to reduce the compilation time? [Y/n]:<br>
Eigen strong inline overridden.</p>
<p dir="auto">Preconfigured Bazel build configs. You can use any of the below by adding "--config=&lt;&gt;" to your build command. See .bazelrc for more details.<br>
--config=mkl            # Build with MKL support.<br>
--config=monolithic     # Config for mostly static monolithic build.<br>
--config=gdr            # Build with GDR support.<br>
--config=verbs          # Build with libverbs support.<br>
--config=ngraph         # Build with Intel nGraph support.<br>
--config=dynamic_kernels        # (Experimental) Build kernels into separate shared objects.<br>
Preconfigured Bazel build configs to DISABLE default on features:<br>
--config=noaws          # Disable AWS S3 filesystem support.<br>
--config=nogcp          # Disable GCP support.<br>
--config=nohdfs         # Disable HDFS support.<br>
--config=noignite       # Disable Apacha Ignite support.<br>
--config=nokafka        # Disable Apache Kafka support.<br>
--config=nonccl         # Disable NVIDIA NCCL support.</p>
<p dir="auto">(tensorflow-v1.13) d:\tensorflow&gt;bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package</p>
<p dir="auto"><strong>Any other info / logs</strong><br>
ERROR: D:/tensorflow/tensorflow/core/kernels/BUILD:1687:1: C++ compilation of rule '//tensorflow/core/kernels:transpose_functor_gpu' failed (Exit 5): python.exe failed: error executing command</p>
<p dir="auto">nvcc error   : 'cudafe++' died with status 0xC0000005 (ACCESS_VIOLATION)<br>
Target //tensorflow/tools/pip_package:build_pip_package failed to build<br>
INFO: Elapsed time: 542.611s, Critical Path: 293.00s<br>
INFO: 3067 processes: 3067 local.<br>
FAILED: Build did NOT complete successfully</p>
<p dir="auto">Hi,<br>
In the example code of mnist_softmax.py<br>
I always fail on:<br>
mnist = input_data.read_data_sets(FLAGS.data_dir, one_hot=True)<br>
The error logs are like this:</p>
<blockquote>
<blockquote>
<blockquote>
<p dir="auto">mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)<br>
Traceback (most recent call last):<br>
File "", line 1, in <br>
File "/home/clock/.local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py", line 211, in read_data_sets<br>
SOURCE_URL + TRAIN_IMAGES)<br>
File "/home/clock/.local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/datasets/base.py", line 208, in maybe_download<br>
temp_file_name, _ = urlretrieve_with_retry(source_url)<br>
File "/home/clock/.local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/datasets/base.py", line 165, in wrapped_fn<br>
return fn(*args, **kwargs)<br>
File "/home/clock/.local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/datasets/base.py", line 190, in urlretrieve_with_retry<br>
return urllib.request.urlretrieve(url, filename)<br>
File "/usr/lib/python2.7/urllib.py", line 98, in urlretrieve<br>
return opener.retrieve(url, filename, reporthook, data)<br>
File "/usr/lib/python2.7/urllib.py", line 245, in retrieve<br>
fp = self.open(url, data)<br>
File "/usr/lib/python2.7/urllib.py", line 213, in open<br>
return getattr(self, name)(url)<br>
File "/usr/lib/python2.7/urllib.py", line 350, in open_http<br>
h.endheaders(data)<br>
File "/usr/lib/python2.7/httplib.py", line 1053, in endheaders<br>
self._send_output(message_body)<br>
File "/usr/lib/python2.7/httplib.py", line 897, in _send_output<br>
self.send(msg)<br>
File "/usr/lib/python2.7/httplib.py", line 859, in send<br>
self.connect()<br>
File "/usr/lib/python2.7/httplib.py", line 836, in connect<br>
self.timeout, self.source_address)<br>
File "/usr/lib/python2.7/socket.py", line 575, in create_connection<br>
raise err<br>
IOError: [Errno socket error] [Errno 110] Connection timed out</p>
</blockquote>
</blockquote>
</blockquote>
<p dir="auto">And I found it'll download the dataset from <a href="http://yann.lecun.com/exdb/mnist/" rel="nofollow">http://yann.lecun.com/exdb/mnist/</a>, but Yann Lecunn's website already disappear these days. Can you choose another more stable website to download the dataset?<br>
Thanks very much in advance.</p>