torch-3.1 is obsolete and will most likely not work with any current version of CUDA. If we take the cuda release history: https://developer.nvidia.com/cuda-toolkit-archive And the availability date of torch-3.1 (2009) see e.g. https://www.rpmfind.net/linux/RPM/fedora/23/x86_64/t/torch-3.1-12.fc23.x86_64.html Then torch-3.1 is in the very best compatible with cuda 2.3 Here's the thing: The current torch7 does support CUDA 6.5 and cuDNN 4. However, current version is CUDA 7.5 and cuDNN 5 While I managed to get it work under Gentoo, torch seems to have a hard time to keep up with the CUDA release pace. The CUDA API changed significantly with CUDA 4, today torch is basically a lua-based API and not a C++ based API anymore. I do not think it makes sense whatsoever to keep torch-3.1 except you expect to run a modern gentoo on historic (2009) CUDA setups. Installing torch-3.1 and trying to compile any of the examples there yields # make Makefile:15: /data/soft/Makefile_options_Linux: No such file or directory make: *** No rule to make target '/data/soft/Makefile_options_Linux'. Stop. # locate Makefile_options # or # equery f sci-libs/torch | grep -i make /usr/share/doc/torch-3.1/examples/decoder/Makefile.bz2 /usr/share/doc/torch-3.1/examples/discriminatives/Makefile.bz2 /usr/share/doc/torch-3.1/examples/generatives/Makefile.bz2 /usr/share/doc/torch-3.1/examples/speech/Makefile.bz2 /usr/share/doc/torch-3.1/html/mxMakeH.html /usr/share/doc/torch-3.1/html/mxMakeHQ.html I think it's dead and pointless. Reproducible: Always This ticket should go to sci@gentoo.org
Thanks for the pointer commit 279425b411bd6a85cc56c86105fa2df1b65d89fe Author: David Seifert <soap@gentoo.org> Date: Sun May 15 11:06:39 2016 +0200 profiles/package.mask: mask sci-libs/torch for removal, bug #583068 # David Seifert <soap@gentoo.org> (15 May 2016) # Masked for removal. Deprecated, relies on ancient CUDA APIs, # does not build with current CUDA releases. See bug #583068. sci-libs/torch
commit af5bd0ce8576e0ad533467aa9c7e2d3b8945121d Author: Michał Górny <mgorny@gentoo.org> AuthorDate: Sun Jun 26 17:13:13 2016 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: Sun Jun 26 17:13:13 2016 sci-libs/torch: Remove last rited packages