Skip to content

Commit

Permalink
Merge pull request cupy#6041 from chainer-ci/bp-6032-v9-add-license-t…
Browse files Browse the repository at this point in the history
…ools

[backport] Display license terms when downloading libraries
  • Loading branch information
kmaehashi authored Nov 8, 2021
2 parents feda70f + d1936a0 commit d85e4f4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions cupyx/tools/install_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,21 @@ def install_lib(cuda, prefix, library):
raise RuntimeError('''
The current platform ({}) is not supported.'''.format(target_platform))

if library == 'cudnn':
print('By downloading and using cuDNN, you accept the terms and'
' conditions of the NVIDIA cuDNN Software License Agreement:')
print(' https://docs.nvidia.com/deeplearning/cudnn/sla/index.html')
print()
elif library == 'cutensor':
print('By downloading and using cuTENSOR, you accept the terms and'
' conditions of the NVIDIA cuTENSOR Software License Agreement:')
print(' https://docs.nvidia.com/cuda/cutensor/license.html')
print()
elif library == 'nccl':
pass # BSD
else:
assert False

print('Installing {} {} for CUDA {} to: {}'.format(
library, record[library], record['cuda'], destination))

Expand Down

0 comments on commit d85e4f4

Please sign in to comment.