cuDNN: Help dependents find libs/includes on Power arch (#16128)

On Power architectures cuDNN will install in a target directory. This
sets cuDNN_ROOT to point to the subdirectory to help dependents use
this install.
This commit is contained in:
Brian Van Essen 2020-04-27 13:15:46 -07:00 committed by GitHub
parent 1c45153e00
commit a4b17b9503
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -190,6 +190,11 @@ def url_for_version(self, version):
return url.format(directory, cuda, ver) return url.format(directory, cuda, ver)
def setup_run_environment(self, env):
if 'target=ppc64le: platform=linux' in self.spec:
env.set('cuDNN_ROOT', os.path.join(
self.prefix, 'targets', 'ppc64le-linux'))
def install(self, spec, prefix): def install(self, spec, prefix):
install_tree('.', prefix) install_tree('.', prefix)