Skip to content

Commit

Permalink
Merge pull request #3045 from easybuilders/ocaisa-patch-1
Browse files Browse the repository at this point in the history
Add requirement for EULA acceptance to CUDA easyblock
  • Loading branch information
boegel authored Dec 29, 2023
2 parents 20de2f8 + 662fd0d commit b21ada0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions easybuild/easyblocks/c/cuda.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,16 @@ def __init__(self, *args, **kwargs):
self.cfg.template_values['cudaarch'] = cudaarch
self.cfg.generate_template_values()

def fetch_step(self, *args, **kwargs):
"""Check for EULA acceptance prior to getting sources."""
# EULA for CUDA must be accepted via --accept-eula-for EasyBuild configuration option,
# or via 'accept_eula = True' in easyconfig file
self.check_accepted_eula(
name='CUDA',
more_info='https://docs.nvidia.com/cuda/eula/index.html'
)
return super(EB_CUDA, self).fetch_step(*args, **kwargs)

def extract_step(self):
"""Extract installer to have more control, e.g. options, patching Perl scripts, etc."""
execpath = self.src[0]['path']
Expand Down

0 comments on commit b21ada0

Please sign in to comment.