Torch: Difference between revisions

From Alliance Doc
Jump to navigation Jump to search
(Created page with "{{Draft}} Torch is available in the form of a module. In order to use it, you must first load the cuda module. {{Command|module load cuda torch}} will give you the latest...")
 
No edit summary
Line 10: Line 10:
Torch comes with the Lua package manager, named [https://luarocks.org/ luarocks]. By design, <tt>luarocks</tt> will allow you to install new packages, but will not find the system packages. To install packages in your own folder, use the following:  
Torch comes with the Lua package manager, named [https://luarocks.org/ luarocks]. By design, <tt>luarocks</tt> will allow you to install new packages, but will not find the system packages. To install packages in your own folder, use the following:  


{{Command|luarocks install --local --deps-mode=all <package name>}}
{{Command|luarocks install --local --deps-mode{{=}}all <package name>}}


By experience, we often find packages that do not install quite well through <tt>luarocks</tt>. If you have a package that is not installed in the default module and need help installing it, please contact our [[Technical support]]
By experience, we often find packages that do not install quite well through <tt>luarocks</tt>. If you have a package that is not installed in the default module and need help installing it, please contact our [[Technical support]]

Revision as of 20:03, 31 July 2017


This article is a draft

This is not a complete article: This is a draft, a work in progress that is intended to be published into an article, which may or may not be ready for inclusion in the main wiki. It should not necessarily be considered factual or authoritative.




Torch is available in the form of a module. In order to use it, you must first load the cuda module.

Question.png
[name@server ~]$ module load cuda torch

will give you the latest version available.

Installing Lua packages

Torch comes with the Lua package manager, named luarocks. By design, luarocks will allow you to install new packages, but will not find the system packages. To install packages in your own folder, use the following:

Question.png
[name@server ~]$ luarocks install --local --deps-mode=all <package name>

By experience, we often find packages that do not install quite well through luarocks. If you have a package that is not installed in the default module and need help installing it, please contact our Technical support