cuda: add installation workaround for version 10.1.243 on ppc64le (#21200)
Fixes #21170
This commit is contained in:
parent
cdb9b10e27
commit
49f0e9640d
1 changed files with 9 additions and 0 deletions
|
@ -134,6 +134,15 @@ def install(self, spec, prefix):
|
|||
# https://gist.github.com/ax3l/9489132
|
||||
# for details.
|
||||
|
||||
# CUDA 10.1 on ppc64le fails to copy some files, the workaround is adapted from
|
||||
# https://forums.developer.nvidia.com/t/cuda-10-1-243-10-1-update-2-ppc64le-run-file-installation-issue/82433
|
||||
# See also #21170
|
||||
if spec.satisfies('@10.1.243') and platform.machine() == 'ppc64le':
|
||||
includedir = "targets/ppc64le-linux/include"
|
||||
os.makedirs(os.path.join(prefix, includedir))
|
||||
os.makedirs(os.path.join(prefix, "src"))
|
||||
os.symlink(includedir, os.path.join(prefix, "include"))
|
||||
|
||||
# CUDA 10.1+ has different cmdline options for the installer
|
||||
arguments = [
|
||||
runfile, # the install script
|
||||
|
|
Loading…
Reference in a new issue