Skip to content

Instantly share code, notes, and snippets.

@ypwhs
Last active October 20, 2021 16:28
Show Gist options
  • Save ypwhs/cad8f8db61944e524910c2fb0a213bd1 to your computer and use it in GitHub Desktop.
Save ypwhs/cad8f8db61944e524910c2fb0a213bd1 to your computer and use it in GitHub Desktop.
import requests
def format_bytes(size):
# 2**10 = 1024
power = 2 ** 10
n = 0
power_labels = {0: '', 1: 'K', 2: 'M', 3: 'G', 4: 'T'}
while size > power:
size /= power
n += 1
return f'{size:.2f}{power_labels[n]}B'
def print_table(cuda, cudnn):
print('| cuDNN |' + ''.join(f' CUDA{x} |' for x in cuda))
print('| ' + '---- |' * (len(cuda) + 1))
for i, (a, b) in enumerate(cudnn):
print(f'| {a} |', end='')
for c in cuda:
url = f'https://developer.download.nvidia.com/compute/redist/cudnn/v{a}/cudnn-{c}-linux-x64-v{b}.tgz'
filename = f'cudnn-{c}-linux-x64-v{b}.tgz'
head = requests.head(url)
if head.status_code == 200:
size = int(head.headers['Content-length'])
print(f' [{filename}]({url}) ({format_bytes(size)}) |', end='')
else:
print(' - |', end='')
print()
if __name__ == '__main__':
cuda = ['9.0', '9.2', '10.0', '10.1']
cudnn = [
('7.6.1', '7.6.1.34'),
('7.6.0', '7.6.0.64'),
('7.5.1', '7.5.1.10'),
('7.5.0', '7.5.0.56'),
('7.4.2', '7.4.2.24'),
('7.4.1', '7.4.1.5'),
('7.3.1', '7.3.1.20'),
('7.3.0', '7.3.0.29'),
('7.2.1', '7.2.1.38'),
('7.1.4', '7.1'),
]
print_table(cuda, cudnn)
print()
cuda = ['6.5', '7.0', '7.5', '8.0', '9.0']
cudnn = [
('7.2.1', '7.2.1.38'),
('7.1.4', '7.1'),
('7.1.3', '7.1'),
('7.1.2', '7.1'),
('7.0.5', '7'),
('7.0.4', '7'),
('6.0', '6.0'),
('5.1', '5.1'),
('5', '5.0-ga'),
('4', '4.0-prod'),
('3', '3.0-prod'),
('2', '2')
]
print_table(cuda, cudnn)
import requests
def format_bytes(size):
# 2**10 = 1024
power = 2 ** 10
n = 0
power_labels = {0: '', 1: 'K', 2: 'M', 3: 'G', 4: 'T'}
while size > power:
size /= power
n += 1
return f'{size:.2f}{power_labels[n]}B'
def print_table(cuda, cudnn):
print('| cuDNN |' + ''.join(f' CUDA{x} |' for x in cuda))
print('| ' + '---- |' * (len(cuda) + 1))
for i, (a, b) in enumerate(cudnn):
print(f'| {a} |', end='')
for c in cuda:
url = f'https://developer.download.nvidia.com/compute/redist/cudnn/v{a}/cudnn-{c}-windows10-x64-v{b}.zip'
filename = url[url.rfind('/')+1:]
head = requests.head(url, allow_redirects=True)
if head.status_code == 200:
size = int(head.headers['Content-length'])
print(f' [{filename}]({url}) ({format_bytes(size)}) |', end='')
else:
print(' - |', end='')
print()
if __name__ == '__main__':
cuda = ['9.0', '9.2', '10.0', '10.1']
cudnn = [
('7.6.1', '7.6.1.34'),
('7.6.0', '7.6.0.64'),
('7.5.1', '7.5.1.10'),
('7.5.0', '7.5.0.56'),
('7.4.2', '7.4.2.24'),
('7.4.1', '7.4.1.5'),
('7.3.1', '7.3.1.20'),
('7.3.0', '7.3.0.29'),
('7.2.1', '7.2.1.38'),
('7.1.4', '7.1'),
]
print_table(cuda, cudnn)
print()
cuda = ['6.5', '7.0', '7.5', '8.0', '9.0']
cudnn = [
('7.2.1', '7.2.1.38'),
('7.1.4', '7.1'),
('7.1.3', '7.1'),
('7.1.2', '7.1'),
('7.0.5', '7'),
('7.0.4', '7'),
('6.0', '6.0'),
('5.1', '5.1'),
('5', '5.0-ga'),
('4', '4.0-prod'),
('3', '3.0-prod'),
('2', '2')
]
print_table(cuda, cudnn)
@ypwhs
Copy link
Author

ypwhs commented Jul 21, 2019

cuDNN CUDA9.0 CUDA9.2 CUDA10.0 CUDA10.1
7.6.1 cudnn-9.0-linux-x64-v7.6.1.34.tgz (392.82MB) cudnn-9.2-linux-x64-v7.6.1.34.tgz (396.89MB) cudnn-10.0-linux-x64-v7.6.1.34.tgz (460.88MB) cudnn-10.1-linux-x64-v7.6.1.34.tgz (497.63MB)
7.6.0 cudnn-9.0-linux-x64-v7.6.0.64.tgz (374.59MB) cudnn-9.2-linux-x64-v7.6.0.64.tgz (378.84MB) cudnn-10.0-linux-x64-v7.6.0.64.tgz (440.90MB) cudnn-10.1-linux-x64-v7.6.0.64.tgz (477.61MB)
7.5.1 cudnn-9.0-linux-x64-v7.5.1.10.tgz (357.13MB) cudnn-9.2-linux-x64-v7.5.1.10.tgz (361.63MB) cudnn-10.0-linux-x64-v7.5.1.10.tgz (412.76MB) cudnn-10.1-linux-x64-v7.5.1.10.tgz (449.47MB)
7.5.0 cudnn-9.0-linux-x64-v7.5.0.56.tgz (357.11MB) cudnn-9.2-linux-x64-v7.5.0.56.tgz (361.61MB) cudnn-10.0-linux-x64-v7.5.0.56.tgz (412.76MB) cudnn-10.1-linux-x64-v7.5.0.56.tgz (449.46MB)
7.4.2 cudnn-9.0-linux-x64-v7.4.2.24.tgz (349.00MB) cudnn-9.2-linux-x64-v7.4.2.24.tgz (353.84MB) cudnn-10.0-linux-x64-v7.4.2.24.tgz (404.82MB) -
7.4.1 cudnn-9.0-linux-x64-v7.4.1.5.tgz (347.17MB) cudnn-9.2-linux-x64-v7.4.1.5.tgz (352.02MB) cudnn-10.0-linux-x64-v7.4.1.5.tgz (403.12MB) -
7.3.1 cudnn-9.0-linux-x64-v7.3.1.20.tgz (344.85MB) cudnn-9.2-linux-x64-v7.3.1.20.tgz (351.05MB) cudnn-10.0-linux-x64-v7.3.1.20.tgz (400.58MB) -
7.3.0 cudnn-9.0-linux-x64-v7.3.0.29.tgz (340.43MB) - cudnn-10.0-linux-x64-v7.3.0.29.tgz (396.06MB) -
7.2.1 cudnn-9.0-linux-x64-v7.2.1.38.tgz (331.19MB) cudnn-9.2-linux-x64-v7.2.1.38.tgz (337.08MB) - -
7.1.4 cudnn-9.0-linux-x64-v7.1.tgz (390.26MB) cudnn-9.2-linux-x64-v7.1.tgz (401.58MB) - -
cuDNN CUDA6.5 CUDA7.0 CUDA7.5 CUDA8.0 CUDA9.0
7.2.1 - - - cudnn-8.0-linux-x64-v7.2.1.38.tgz (189.78MB) cudnn-9.0-linux-x64-v7.2.1.38.tgz (331.19MB)
7.1.4 - - - - cudnn-9.0-linux-x64-v7.1.tgz (390.26MB)
7.1.3 - - - cudnn-8.0-linux-x64-v7.1.tgz (245.96MB) cudnn-9.0-linux-x64-v7.1.tgz (387.77MB)
7.1.2 - - - cudnn-8.0-linux-x64-v7.1.tgz (246.13MB) cudnn-9.0-linux-x64-v7.1.tgz (387.42MB)
7.0.5 - - - cudnn-8.0-linux-x64-v7.tgz (267.98MB) cudnn-9.0-linux-x64-v7.tgz (332.66MB)
7.0.4 - - - cudnn-8.0-linux-x64-v7.tgz (267.98MB) cudnn-9.0-linux-x64-v7.tgz (332.67MB)
6.0 - - cudnn-7.5-linux-x64-v6.0.tgz (109.43MB) cudnn-8.0-linux-x64-v6.0.tgz (191.82MB) -
5.1 - - cudnn-7.5-linux-x64-v5.1.tgz (77.18MB) cudnn-8.0-linux-x64-v5.1.tgz (98.39MB) -
5 - - cudnn-7.5-linux-x64-v5.0-ga.tgz (75.66MB) cudnn-8.0-linux-x64-v5.0-ga.tgz (94.58MB) -
4 - cudnn-7.0-linux-x64-v4.0-prod.tgz (81.73MB) - - -
3 - cudnn-7.0-linux-x64-v3.0-prod.tgz (63.81MB) - - -
2 cudnn-6.5-linux-x64-v2.tgz (15.18MB) - - - -

@ypwhs
Copy link
Author

ypwhs commented Sep 26, 2019

cuDNN CUDA9.0 CUDA9.2 CUDA10.0 CUDA10.1
7.6.1 cudnn-9.0-windows10-x64-v7.6.1.34.zip (201.80MB) cudnn-9.2-windows10-x64-v7.6.1.34.zip (203.54MB) cudnn-10.0-windows10-x64-v7.6.1.34.zip (237.73MB) cudnn-10.1-windows10-x64-v7.6.1.34.zip (263.75MB)
7.6.0 cudnn-9.0-windows10-x64-v7.6.0.64.zip (192.70MB) cudnn-9.2-windows10-x64-v7.6.0.64.zip (194.52MB) cudnn-10.0-windows10-x64-v7.6.0.64.zip (227.76MB) cudnn-10.1-windows10-x64-v7.6.0.64.zip (253.77MB)
7.5.1 cudnn-9.0-windows10-x64-v7.5.1.10.zip (184.06MB) cudnn-9.2-windows10-x64-v7.5.1.10.zip (185.99MB) cudnn-10.0-windows10-x64-v7.5.1.10.zip (213.77MB) cudnn-10.1-windows10-x64-v7.5.1.10.zip (239.76MB)
7.5.0 cudnn-9.0-windows10-x64-v7.5.0.56.zip (184.05MB) cudnn-9.2-windows10-x64-v7.5.0.56.zip (185.98MB) cudnn-10.0-windows10-x64-v7.5.0.56.zip (213.78MB) cudnn-10.1-windows10-x64-v7.5.0.56.zip (239.75MB)
7.4.2 cudnn-9.0-windows10-x64-v7.4.2.24.zip (180.04MB) cudnn-9.2-windows10-x64-v7.4.2.24.zip (182.13MB) cudnn-10.0-windows10-x64-v7.4.2.24.zip (209.84MB) -
7.4.1 cudnn-9.0-windows10-x64-v7.4.1.5.zip (179.09MB) cudnn-9.2-windows10-x64-v7.4.1.5.zip (181.16MB) cudnn-10.0-windows10-x64-v7.4.1.5.zip (208.93MB) -
7.3.1 cudnn-9.0-windows10-x64-v7.3.1.20.zip (177.85MB) cudnn-9.2-windows10-x64-v7.3.1.20.zip (180.61MB) cudnn-10.0-windows10-x64-v7.3.1.20.zip (207.59MB) -
7.3.0 cudnn-9.0-windows10-x64-v7.3.0.29.zip (176.12MB) - cudnn-10.0-windows10-x64-v7.3.0.29.zip (205.84MB) -
7.2.1 cudnn-9.0-windows10-x64-v7.2.1.38.zip (171.64MB) cudnn-9.2-windows10-x64-v7.2.1.38.zip (174.26MB) - -
7.1.4 cudnn-9.0-windows10-x64-v7.1.zip (201.39MB) cudnn-9.2-windows10-x64-v7.1.zip (206.81MB) - -
cuDNN CUDA6.5 CUDA7.0 CUDA7.5 CUDA8.0 CUDA9.0
7.2.1 - - - cudnn-8.0-windows10-x64-v7.2.1.38.zip (100.06MB) cudnn-9.0-windows10-x64-v7.2.1.38.zip (171.64MB)
7.1.4 - - - - cudnn-9.0-windows10-x64-v7.1.zip (201.39MB)
7.1.3 - - - cudnn-8.0-windows10-x64-v7.1.zip (128.37MB) cudnn-9.0-windows10-x64-v7.1.zip (200.17MB)
7.1.2 - - - cudnn-8.0-windows10-x64-v7.1.zip (128.47MB) cudnn-9.0-windows10-x64-v7.1.zip (200.00MB)
7.0.5 - - - cudnn-8.0-windows10-x64-v7.zip (139.68MB) cudnn-9.0-windows10-x64-v7.zip (172.86MB)
7.0.4 - - - cudnn-8.0-windows10-x64-v7.zip (139.72MB) cudnn-9.0-windows10-x64-v7.zip (172.86MB)
6.0 - - cudnn-7.5-windows10-x64-v6.0.zip (56.01MB) cudnn-8.0-windows10-x64-v6.0.zip (101.57MB) -
5.1 - - cudnn-7.5-windows10-x64-v5.1.zip (40.15MB) cudnn-8.0-windows10-x64-v5.1.zip (53.95MB) -
5 - - cudnn-7.5-windows10-x64-v5.0-ga.zip (39.41MB) cudnn-8.0-windows10-x64-v5.0-ga.zip (51.21MB) -

@TheEpicFace007
Copy link

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment