From 2137f3846460282e29cb50d422741ef5c6a3e2e7 Mon Sep 17 00:00:00 2001 From: ocaisa Date: Tue, 8 Oct 2024 09:33:58 +0200 Subject: [PATCH] cuDNN requires EULA --- easybuild/easyblocks/c/cudnn.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/easybuild/easyblocks/c/cudnn.py b/easybuild/easyblocks/c/cudnn.py index 9c1b3557b7..0d2be91475 100644 --- a/easybuild/easyblocks/c/cudnn.py +++ b/easybuild/easyblocks/c/cudnn.py @@ -68,3 +68,13 @@ def __init__(self, *args, **kwargs): self.cfg['keepsymlinks'] = True self.cfg.template_values['cudnnarch'] = cudnnarch self.cfg.generate_template_values() + + def fetch_step(self, *args, **kwargs): + """Check for EULA acceptance prior to getting sources.""" + # EULA for cuDNN must be accepted via --accept-eula-for EasyBuild configuration option, + # or via 'accept_eula = True' in easyconfig file + self.check_accepted_eula( + name='cuDNN', + more_info='https://docs.nvidia.com/deeplearning/cudnn/latest/reference/eula.html' + ) + return super(EB_cuDNN, self).fetch_step(*args, **kwargs)