Repository: cupy/cupy

Issue:
[RFC] Drop CUDA 10.0/10.1 support in v10
We are currently thinking of dropping support for CUDA 10.0 / 10.1 in CuPy v10, which is planned to be released in November. Feel free to leave a comment if you have any concerns or feedback.


Discussion:

Resolving patch:
diff --git a/cupy/cuda/compiler.py b/cupy/cuda/compiler.py
--- a/cupy/cuda/compiler.py
+++ b/cupy/cuda/compiler.py
@@ -123,11 +123,8 @@ def _get_nvrtc_version():
 @_util.memoize()
 def _get_max_compute_capability():
     major, minor = _get_nvrtc_version()
-    if major < 10 or (major == 10 and minor == 0):
-        # CUDA 9.x / 10.0
-        nvrtc_max_compute_capability = '70'
-    elif major < 11:
-        # CUDA 10.1 / 10.2
+    if major < 11:
+        # CUDA 10.2
         nvrtc_max_compute_capability = '75'
     elif major == 11 and minor == 0:
         # CUDA 11.0
diff --git a/cupyx/tools/install_library.py b/cupyx/tools/install_library.py
--- a/cupyx/tools/install_library.py
+++ b/cupyx/tools/install_library.py
@@ -90,18 +90,6 @@ def _make_cudnn_record(
     '10.2', '8.2.4',
     'cudnn-10.2-linux-x64-v8.2.4.15.tgz',
     'cudnn-10.2-windows10-x64-v8.2.4.15.zip'))
-_cudnn_records.append(_make_cudnn_record(
-    '10.1', '8.0.5',
-    'cudnn-10.1-linux-x64-v8.0.5.39.tgz',
-    'cudnn-10.1-windows10-x64-v8.0.5.39.zip'))
-_cudnn_records.append(_make_cudnn_record(
-    '10.0', '7.6.5',
-    'cudnn-10.0-linux-x64-v7.6.5.32.tgz',
-    'cudnn-10.0-windows10-x64-v7.6.5.32.zip'))
-_cudnn_records.append(_make_cudnn_record(
-    '9.2', '7.6.5',
-    'cudnn-9.2-linux-x64-v7.6.5.32.tgz',
-    'cudnn-9.2-windows10-x64-v7.6.5.32.zip'))
 library_records['cudnn'] = _cudnn_records
 
 
@@ -154,10 +142,6 @@ def _make_cutensor_record(
     '10.2', '1.3.1',
     'libcutensor-linux-x86_64-1.3.1.3.tar.gz',
     'libcutensor-windows-x86_64-1.3.1.3.zip'))
-_cutensor_records.append(_make_cutensor_record(
-    '10.1', '1.2.2',
-    'libcutensor-linux-x86_64-1.2.2.5.tar.gz',
-    'libcutensor-windows-x86_64-1.2.2.5.zip'))
 library_records['cutensor'] = _cutensor_records
 
 
@@ -200,15 +184,6 @@ def _make_nccl_record(
 _nccl_records.append(_make_nccl_record(
     '10.2', '2.11.4', '2.11',
     'nccl_2.11.4-1+cuda10.2_x86_64.txz'))
-_nccl_records.append(_make_nccl_record(
-    '10.1', '2.8.3', '2.8',
-    'nccl_2.8.3-1+cuda10.1_x86_64.txz'))
-_nccl_records.append(_make_nccl_record(
-    '10.0', '2.6.4', '2.6',
-    'nccl_2.6.4-1+cuda10.0_x86_64.txz'))
-_nccl_records.append(_make_nccl_record(
-    '9.2', '2.4.8', '2.4',
-    'nccl_2.4.8-1+cuda9.2_x86_64.txz'))
 library_records['nccl'] = _nccl_records
 
 
diff --git a/install/cupy_builder/install_build.py b/install/cupy_builder/install_build.py
--- a/install/cupy_builder/install_build.py
+++ b/install/cupy_builder/install_build.py
@@ -14,7 +14,7 @@
 PLATFORM_LINUX = sys.platform.startswith('linux')
 PLATFORM_WIN32 = sys.platform.startswith('win32')
 
-minimum_cuda_version = 10000
+minimum_cuda_version = 10020
 minimum_cudnn_version = 7600
 
 minimum_hip_version = 305  # for ROCm 3.5.0+
@@ -313,7 +313,7 @@ def check_cuda_version(compiler, settings):
     if _cuda_version < minimum_cuda_version:
         utils.print_warning(
             'CUDA version is too old: %d' % _cuda_version,
-            'CUDA 10.0 or newer is required')
+            'CUDA 10.2 or newer is required')
         return False
 
     return True


Test patch: