{"id":658,"date":"2019-04-24T09:31:19","date_gmt":"2019-04-24T08:31:19","guid":{"rendered":"http:\/\/ri.itservices.manchester.ac.uk\/htccondor\/?page_id=658"},"modified":"2025-02-21T12:00:45","modified_gmt":"2025-02-21T12:00:45","slug":"mathematica","status":"publish","type":"page","link":"https:\/\/ri.itservices.manchester.ac.uk\/htccondor\/software\/mathematica\/","title":{"rendered":"Mathematica"},"content":{"rendered":"<div class=\"entrytext\">\n<h2><span id=\"Overview\">Overview<\/span><\/h2>\n<p>Mathematica is a computational software program used in scientific, engineering, and mathematical fields and other areas of technical computing.  It was conceived by Stephen Wolfram and is developed by <a href=\"http:\/\/www.wolfram.com\/\">Wolfram Research<\/a> of Champaign, Illinois.<\/p>\n<h2>Restrictions on use\/License information<\/h2>\n<p>Mathematica is commercial software, and usage is restricted to staff and students of the University of Manchester for the purposes of research and teaching. <strong>It may not be used for any purpose that leads to direct or indirect commercial exploitation of the software<\/strong>.<\/p>\n<p>There is no restriction on the number of simultaneously running programs on HTCondor.<\/p>\n<h2><span id=\"Versions_installed\">Versions installed<\/span><\/h2>\n<table align=\"center\" border=\"1\">\n<tbody>\n<tr>\n<th align=\"center\">Mathematica version<\/th>\n<th align=\"center\">HTCondor ClassAd<\/th>\n<\/tr>\n<tr>\n<td align=\"center\">13.3.0<\/td>\n<td align=\"center\">HAS_MATHEMATICA_13_3_0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2><span id=\"Set_up_procedure_on_submit_node\">Set up procedure on submit node<\/span><\/h2>\n<p>Mathematica can be enabled using the command:<\/p>\n<pre>\r\nmodule load mathematica\/&lt;Mathematica version&gt;\r\n<\/pre>\n<p>and then run using the command <tt>math<\/tt> or <tt>mathematica<\/tt>.<\/p>\n<h2><span id=\"Running_the_application\">Running the application<\/span><\/h2>\n<p>Unfortunately it is not possible to run Mathematica notebook <tt>.nb<\/tt> files directly on Condor. You need to create a Mathematica (Wolfram Language) script file, typically these files have the extension <tt>.wls<\/tt>. The following lines are the contents of a simple generic HTCondor submit text file for submitting an Mathematica script file to HTCondor:<\/p>\n<pre>\r\nUniverse = vanilla\r\n\r\nRequirements = (Target.Opsys == \"LINUX\" &amp;&amp; Target.Arch == \"X86_64\" &amp;&amp; &lt;HTCondor ClassAd&gt;=?=True)\r\nRequest_Memory = 1000\r\n\r\nLog = math.log\r\nOutput = math.out\r\nError = math.error\r\nNotification = Error\r\n\r\nShould_Transfer_Files = Yes\r\nWhen_To_Transfer_Output = On_Exit\r\n\r\nExecutable = \/opt\/mathematica-&lt;Mathematica version&gt;\/Executables\/math\r\nTransfer_Executable = False\r\nInput = &lt;script&gt;.wls\r\nArguments = &lt;input arguments&gt;\r\nTransfer_Input_Files = &lt;script&gt;.wls\r\n\r\nQueue\r\n<\/pre>\n<p>If your submit file is called <tt>submit.txt<\/tt> then your job can be submitted to HTCondor using the command <tt>condor_submit submit.txt<\/tt>.<\/p>\n<h2>Sample Mathematica HTCondor jobs<\/h2>\n<ol>\n<li><a href=\"https:\/\/ri.itservices.manchester.ac.uk\/htccondor\/software\/mathematica_arguments\/\">Mathematica example demonstrating how to pass arguments to a script<\/a>.<\/li>\n<li><a href=\"https:\/\/ri.itservices.manchester.ac.uk\/htccondor\/software\/mathematica_pi\/\">Mathematica code for calculating Pi using <em>n<\/em> terms of the Gregory series<\/a>.<\/li>\n<\/ol>\n<p><\/body><\/html><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview Mathematica is a computational software program used in scientific, engineering, and mathematical fields and other areas of technical computing. It was conceived by Stephen Wolfram and is developed by Wolfram Research of Champaign, Illinois. Restrictions on use\/License information Mathematica is commercial software, and usage is restricted to staff and students of the University of Manchester for the purposes of research and teaching. It may not be used for any purpose that leads to direct.. <a href=\"https:\/\/ri.itservices.manchester.ac.uk\/htccondor\/software\/mathematica\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"parent":17,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-658","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/htccondor\/wp-json\/wp\/v2\/pages\/658","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/htccondor\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/htccondor\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/htccondor\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/htccondor\/wp-json\/wp\/v2\/comments?post=658"}],"version-history":[{"count":15,"href":"https:\/\/ri.itservices.manchester.ac.uk\/htccondor\/wp-json\/wp\/v2\/pages\/658\/revisions"}],"predecessor-version":[{"id":1232,"href":"https:\/\/ri.itservices.manchester.ac.uk\/htccondor\/wp-json\/wp\/v2\/pages\/658\/revisions\/1232"}],"up":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/htccondor\/wp-json\/wp\/v2\/pages\/17"}],"wp:attachment":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/htccondor\/wp-json\/wp\/v2\/media?parent=658"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}