CUDA_HOME needs to be set, or CUDA is found based on user's PATH. (#18475)
This commit is contained in:
parent
6d87cbdb52
commit
638f44d842
1 changed files with 1 additions and 0 deletions
|
@ -86,5 +86,6 @@ def setup_build_environment(self, env):
|
|||
|
||||
if '+cuda' in self.spec['py-torch']:
|
||||
env.set('FORCE_CUDA', 1)
|
||||
env.set('CUDA_HOME', self.spec['cuda'].prefix)
|
||||
else:
|
||||
env.set('FORCE_CUDA', 0)
|
||||
|
|
Loading…
Reference in a new issue