{"id":889,"date":"2017-10-17T12:58:13","date_gmt":"2017-10-17T11:58:13","guid":{"rendered":"https:\/\/research.reading.ac.uk\/act\/?post_type=kbe_knowledgebase&#038;p=889"},"modified":"2022-11-04T11:39:17","modified_gmt":"2022-11-04T11:39:17","slug":"accessing-software-on-the-cluster","status":"publish","type":"kbe_knowledgebase","link":"https:\/\/research.reading.ac.uk\/act\/knowledgebase\/accessing-software-on-the-cluster\/","title":{"rendered":"Accessing Software on the Cluster"},"content":{"rendered":"<div id=\"c5L9_30\" class=\"a0 b0 c0 d0 e1 f8 h10 i5 j4 k1 l1\">\n<div id=\"c5L9_31\" class=\"a0 b3 c1 d0 e1 f8 h10 i0 j4 k1 l1\">On the Reading Academic Computing cluster the locally built software packages are not available right away. They can be loaded into your environment using environmental modules (<a href=\"http:\/\/modules.sourceforge.net\/\">http:\/\/modules.sourceforge.net\/<\/a>). The &#8216;module&#8217; command modify your environmental variables and in particular change the version of software that you use by changing the PATH and other environment variables. The strength of this approach is that it works with all shells and that you can unload modules as opposed to having to start a new shell to get a clean environment. The old command &#8216;setup&#8217; is no longer supported on the met-cluster and is not available for new user accounts.<\/div>\n<\/div>\n<div><\/div>\n<div><\/div>\n<div><\/div>\n<div id=\"c5L9_33\" class=\"a0 b0 c0 d0 e1 f30 h32 i5 j4 k1 l1\">\n<div id=\"c5L9_34\" class=\"a0 b1 c0 d0 e1 f8 h10 i0 j4 k1 l1\">\n&nbsp;<br \/>\n<b><u>Listing available modules<\/u><\/b><\/p>\n<p>You can list the available software modules on the cluster with the command<\/p>\n<pre class=\"nums:false lang:default decode:true \">module avail<\/pre>\n<p>Note that you&#8217;ll have to be on one of the compute nodes on the cluster to see the full range of available software as the head node only has a limited amount of applications available.<\/p>\n<p>If you want to find out what versions of a module are available, for example gcc, then you can specify this in the above command, e.g.:<\/p>\n<pre class=\"nums:false lang:default decode:true\">module avail gcc<\/pre>\n<p>This will show a list of all available versions of gcc in an output like this:<\/p>\n<pre class=\"striped:false marking:false nums:false mixed:false lang:default decode:true\">[dk913223@racc-login-4 ~]$ module avail gcc\r\n\r\n------------------------ \/share\/apps\/modules\/compilers -------------------------\r\ngcc\/6.4.0 gcc\/7.3.0 gcc\/8.4.0 \r\n<\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<div id=\"c5L9_34\" class=\"a0 b1 c0 d0 e1 f8 h10 i0 j4 k1 l1\">\n<p><b><u>Loading a module<\/u><\/b> You can load a module, e.g. gcc, using the command<\/p>\n<pre class=\"nums:false lang:default decode:true\">module load gcc<\/pre>\n<p>or<b><br \/>\n<\/b><\/p>\n<pre class=\"nums:false lang:default decode:true\">module add gcc<\/pre>\n<p>The will load a default value of the module, which in the case of gcc is the newest version, here 8.4.0. For some software, the default version is indicated by &#8216;(default)&#8217; in the output from &#8216;module avail &#8216;. If you want a specific version, for example gcc 6.4.0 then append the version to the above command:<\/p>\n<pre class=\"nums:false lang:default decode:true \">module load gcc\/6.4.0<\/pre>\n<p>&nbsp;<\/p>\n<p><b><u>Listing loaded modules<br \/>\n<\/u><\/b><\/p>\n<p>You can list the modules that you have loaded with the command<\/p>\n<pre class=\"striped:false nums:false lang:default decode:true\">module list<\/pre>\n<p>&nbsp;<\/p>\n<p><b><u>Switching between module versions<br \/>\n<\/u><\/b><\/p>\n<p>If you want to change the version of a module you have loaded, for example from gcc version 8.4.0 to 6.4.0, then you can use the command<\/p>\n<pre class=\"nums:false lang:default decode:true \">module switch gcc\/6.4.0<\/pre>\n<p>&nbsp;<\/p>\n<p><b><u>Adding your own module files<\/u><\/b><\/p>\n<p>If you have a directory of your own modules in your home directory, in \/home\/username\/privatemodules, then you can make them available to load with the command<\/p>\n<pre class=\"nums:false lang:default decode:true\">module use ~\/privatemodules<\/pre>\n<p>This can also be done by adding the module &#8216;use.own&#8217; and it has the advantage that you can call it many times without it being added more than once.<\/p>\n<pre class=\"nums:false lang:default decode:true\">module load use.own<\/pre>\n<p>&nbsp;<\/p>\n<p><b><u>Setting preferred module versions<\/u><\/b><\/p>\n<p>You can use your own modules as a way of loading your preferred versions of a module. If you then change your module preferences you only need to update one file.<\/p>\n<p>The following example shows the contents of a sample file called e.g. &#8216;mypython&#8217;, which could be used to set up your preferred version of the python module (shown here for anaconda\/2020.11).<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false wrap-toggle:false lang:default decode:true\">#%Module1.0#####################################################################\r\n##\r\n## use.own modulefile\r\n##\r\n## modulefiles\/use.own.  Generated from use.own.in by configure.\r\n##\r\nproc ModulesHelp { } {\r\nglobal version\r\n\r\nputs stderr \"\\tThis module adds my prefered version of python\"\r\nputs stderr \"\\n\\tVersion $version\\n\"\r\n}\r\n\r\nmodule-whatis    \"adds my prefered version of anaconda\"\r\n\r\nset    version    2020.11\r\nmodule    load    anaconda\/$version<\/pre>\n<p>When this is set up and you want to load python you would need to load the two modules<\/p>\n<pre class=\"striped:false nums:false lang:default decode:true\">module load use.own\r\nmodule load mypython<\/pre>\n<p>Your personal module file could also be used to load multiple modules.<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>On the Reading Academic Computing cluster the locally built software packages are not available right away. They can be loaded into your environment using environmental modules (http:\/\/modules.sourceforge.net\/). The &#8216;module&#8217; command modify your environmental variables and in particular change the version of software that you use by changing the PATH and other environment variables. The strength<\/p>\n","protected":false},"author":316,"featured_media":1717,"template":"","meta":{"_acf_changed":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"__cvm_playback_settings":[],"__cvm_video_id":"","_links_to":"","_links_to_target":""},"kbe_taxonomy":[61,91],"kbe_tags":[70,73,72,71],"class_list":["post-889","kbe_knowledgebase","type-kbe_knowledgebase","status-publish","has-post-thumbnail","hentry","kbe_taxonomy-academic-cluster-articles","kbe_taxonomy-software","kbe_tags-environmental-modules","kbe_tags-modules","kbe_tags-racc","kbe_tags-software"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Accessing Software on the Cluster - Academic Computing Team<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/research.reading.ac.uk\/act\/knowledgebase\/accessing-software-on-the-cluster\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Accessing Software on the Cluster - Academic Computing Team\" \/>\n<meta property=\"og:description\" content=\"On the Reading Academic Computing cluster the locally built software packages are not available right away. They can be loaded into your environment using environmental modules (http:\/\/modules.sourceforge.net\/). The &#039;module&#039; command modify your environmental variables and in particular change the version of software that you use by changing the PATH and other environment variables. The strength\" \/>\n<meta property=\"og:url\" content=\"https:\/\/research.reading.ac.uk\/act\/knowledgebase\/accessing-software-on-the-cluster\/\" \/>\n<meta property=\"og:site_name\" content=\"Academic Computing Team\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-04T11:39:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/research.reading.ac.uk\/act\/wp-content\/uploads\/sites\/2\/icons\/software.png\" \/>\n\t<meta property=\"og:image:width\" content=\"256\" \/>\n\t<meta property=\"og:image:height\" content=\"256\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/research.reading.ac.uk\/act\/knowledgebase\/accessing-software-on-the-cluster\/\",\"url\":\"https:\/\/research.reading.ac.uk\/act\/knowledgebase\/accessing-software-on-the-cluster\/\",\"name\":\"Accessing Software on the Cluster - Academic Computing Team\",\"isPartOf\":{\"@id\":\"https:\/\/research.reading.ac.uk\/act\/#website\"},\"datePublished\":\"2017-10-17T11:58:13+00:00\",\"dateModified\":\"2022-11-04T11:39:17+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/research.reading.ac.uk\/act\/knowledgebase\/accessing-software-on-the-cluster\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/research.reading.ac.uk\/act\/knowledgebase\/accessing-software-on-the-cluster\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/research.reading.ac.uk\/act\/knowledgebase\/accessing-software-on-the-cluster\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/research.reading.ac.uk\/act\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Knowledgebase\",\"item\":\"https:\/\/research.reading.ac.uk\/act\/knowledgebase\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Accessing Software on the Cluster\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/research.reading.ac.uk\/act\/#website\",\"url\":\"https:\/\/research.reading.ac.uk\/act\/\",\"name\":\"Academic Computing Team\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/research.reading.ac.uk\/act\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/research.reading.ac.uk\/act\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/research.reading.ac.uk\/act\/#organization\",\"name\":\"University of Reading\",\"url\":\"https:\/\/research.reading.ac.uk\/act\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/research.reading.ac.uk\/act\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/research.reading.ac.uk\/act\/wp-content\/uploads\/sites\/2\/2017\/08\/cropped-University_of_Reading_shield-1.png\",\"contentUrl\":\"https:\/\/research.reading.ac.uk\/act\/wp-content\/uploads\/sites\/2\/2017\/08\/cropped-University_of_Reading_shield-1.png\",\"width\":512,\"height\":512,\"caption\":\"University of Reading\"},\"image\":{\"@id\":\"https:\/\/research.reading.ac.uk\/act\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Accessing Software on the Cluster - Academic Computing Team","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/research.reading.ac.uk\/act\/knowledgebase\/accessing-software-on-the-cluster\/","og_locale":"en_GB","og_type":"article","og_title":"Accessing Software on the Cluster - Academic Computing Team","og_description":"On the Reading Academic Computing cluster the locally built software packages are not available right away. They can be loaded into your environment using environmental modules (http:\/\/modules.sourceforge.net\/). The 'module' command modify your environmental variables and in particular change the version of software that you use by changing the PATH and other environment variables. The strength","og_url":"https:\/\/research.reading.ac.uk\/act\/knowledgebase\/accessing-software-on-the-cluster\/","og_site_name":"Academic Computing Team","article_modified_time":"2022-11-04T11:39:17+00:00","og_image":[{"width":256,"height":256,"url":"https:\/\/research.reading.ac.uk\/act\/wp-content\/uploads\/sites\/2\/icons\/software.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Estimated reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/research.reading.ac.uk\/act\/knowledgebase\/accessing-software-on-the-cluster\/","url":"https:\/\/research.reading.ac.uk\/act\/knowledgebase\/accessing-software-on-the-cluster\/","name":"Accessing Software on the Cluster - Academic Computing Team","isPartOf":{"@id":"https:\/\/research.reading.ac.uk\/act\/#website"},"datePublished":"2017-10-17T11:58:13+00:00","dateModified":"2022-11-04T11:39:17+00:00","breadcrumb":{"@id":"https:\/\/research.reading.ac.uk\/act\/knowledgebase\/accessing-software-on-the-cluster\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/research.reading.ac.uk\/act\/knowledgebase\/accessing-software-on-the-cluster\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/research.reading.ac.uk\/act\/knowledgebase\/accessing-software-on-the-cluster\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/research.reading.ac.uk\/act\/"},{"@type":"ListItem","position":2,"name":"Knowledgebase","item":"https:\/\/research.reading.ac.uk\/act\/knowledgebase\/"},{"@type":"ListItem","position":3,"name":"Accessing Software on the Cluster"}]},{"@type":"WebSite","@id":"https:\/\/research.reading.ac.uk\/act\/#website","url":"https:\/\/research.reading.ac.uk\/act\/","name":"Academic Computing Team","description":"","publisher":{"@id":"https:\/\/research.reading.ac.uk\/act\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/research.reading.ac.uk\/act\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/research.reading.ac.uk\/act\/#organization","name":"University of Reading","url":"https:\/\/research.reading.ac.uk\/act\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/research.reading.ac.uk\/act\/#\/schema\/logo\/image\/","url":"https:\/\/research.reading.ac.uk\/act\/wp-content\/uploads\/sites\/2\/2017\/08\/cropped-University_of_Reading_shield-1.png","contentUrl":"https:\/\/research.reading.ac.uk\/act\/wp-content\/uploads\/sites\/2\/2017\/08\/cropped-University_of_Reading_shield-1.png","width":512,"height":512,"caption":"University of Reading"},"image":{"@id":"https:\/\/research.reading.ac.uk\/act\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/research.reading.ac.uk\/act\/wp-json\/wp\/v2\/kbe_knowledgebase\/889","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/research.reading.ac.uk\/act\/wp-json\/wp\/v2\/kbe_knowledgebase"}],"about":[{"href":"https:\/\/research.reading.ac.uk\/act\/wp-json\/wp\/v2\/types\/kbe_knowledgebase"}],"author":[{"embeddable":true,"href":"https:\/\/research.reading.ac.uk\/act\/wp-json\/wp\/v2\/users\/316"}],"version-history":[{"count":9,"href":"https:\/\/research.reading.ac.uk\/act\/wp-json\/wp\/v2\/kbe_knowledgebase\/889\/revisions"}],"predecessor-version":[{"id":7410,"href":"https:\/\/research.reading.ac.uk\/act\/wp-json\/wp\/v2\/kbe_knowledgebase\/889\/revisions\/7410"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/research.reading.ac.uk\/act\/wp-json\/wp\/v2\/media\/1717"}],"wp:attachment":[{"href":"https:\/\/research.reading.ac.uk\/act\/wp-json\/wp\/v2\/media?parent=889"}],"wp:term":[{"taxonomy":"kbe_taxonomy","embeddable":true,"href":"https:\/\/research.reading.ac.uk\/act\/wp-json\/wp\/v2\/kbe_taxonomy?post=889"},{"taxonomy":"kbe_tags","embeddable":true,"href":"https:\/\/research.reading.ac.uk\/act\/wp-json\/wp\/v2\/kbe_tags?post=889"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}