summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/py-pytorch/package.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/py-pytorch/package.py b/var/spack/repos/builtin/packages/py-pytorch/package.py
index d5df52c16f..ab9625a821 100644
--- a/var/spack/repos/builtin/packages/py-pytorch/package.py
+++ b/var/spack/repos/builtin/packages/py-pytorch/package.py
@@ -13,6 +13,8 @@ class PyPytorch(PythonPackage):
homepage = "http://pytorch.org/"
git = "https://github.com/pytorch/pytorch.git"
+ version('1.0.0', tag='v1.0.0', submodules=True)
+ version('0.4.1', tag='v0.4.1', submodules=True)
version('0.4.0', tag='v0.4.0', submodules=True)
version('0.3.1', tag='v0.3.1', submodules=True)
@@ -35,8 +37,8 @@ class PyPytorch(PythonPackage):
depends_on('py-pyyaml', type=('run', 'build'))
depends_on('py-typing', when='@0.3.2:', type=('run', 'build'))
depends_on('intel-mkl', when='+mkl')
- depends_on('cuda', when='+cuda', type=('build', 'link', 'run'))
- depends_on('cudnn', when='+cuda+cudnn')
+ depends_on('cuda@7.5:', when='+cuda', type=('build', 'link', 'run'))
+ depends_on('cudnn@6:', when='+cuda+cudnn')
depends_on('nccl', when='+cuda+nccl')
depends_on('magma+shared', when='+cuda+magma')