  target_include_directories(caffe ${Caffe_INCLUDE_DIRS}
                                   PUBLIC
                                   $<BUILD_INTERFACE:${Caffe_INCLUDE_DIR}>
-diff -aruN caffe-1.0.orig/src/caffe/util/io.cpp caffe-1.0.apollo/src/caffe/util/io.cpp
---- caffe-1.0.orig/src/caffe/util/io.cpp	2017-04-16 00:17:48.000000000 +0800
-+++ caffe-1.0.apollo/src/caffe/util/io.cpp	2020-05-14 21:52:23.538148280 +0800
+diff -aruN caffe-1.0.orig/src/caffe/util/io.cpp caffe-1.0/src/caffe/util/io.cpp
+--- caffe-1.0.orig/src/caffe/util/io.cpp	2020-06-05 19:54:00.910887778 +0800
++++ caffe-1.0/src/caffe/util/io.cpp	2020-06-05 19:54:09.626775454 +0800
 @@ -54,7 +54,7 @@
    CHECK_NE(fd, -1) << "File not found: " << filename;
    ZeroCopyInputStream* raw_input = new FileInputStream(fd);

 # Known NVIDIA GPU achitectures Caffe can be compiled for.
 # This list will be used for CUDA_ARCH_NAME = All option
-set(Caffe_known_gpu_archs "20 21(20) 30 35 50 60 61")
+set(Caffe_known_gpu_archs "30 35 50 52 60 61 70 75")
 
 ################################################################################################
 # A function for automatic detection of GPUs installed  (if autodetection is enabled)

diff -aruN caffe-1.0.orig/cmake/Cuda.cmake caffe-1.0/cmake/Cuda.cmake
--- caffe-1.0.orig/cmake/Cuda.cmake	2020-06-05 19:54:00.866888345 +0800
+++ caffe-1.0/cmake/Cuda.cmake	2020-06-05 20:05:36.186847965 +0800
@@ -1,10 +1,6 @@
-if(CPU_ONLY)
-  return()
