{"id":350,"date":"2017-09-14T14:13:18","date_gmt":"2017-09-14T13:13:18","guid":{"rendered":"http:\/\/ri.itservices.manchester.ac.uk\/htccondor\/?page_id=350"},"modified":"2025-02-21T12:09:30","modified_gmt":"2025-02-21T12:09:30","slug":"hello-world","status":"publish","type":"page","link":"https:\/\/ri.itservices.manchester.ac.uk\/htccondor\/software\/hello-world\/","title":{"rendered":"Hello World"},"content":{"rendered":"<h2>Description<\/h2>\n<p>These <tt><a href=\"https:\/\/ri.itservices.manchester.ac.uk\/htccondor\/wp-content\/uploads\/hello.m\">hello.m<\/a><\/tt> and <tt><a href=\"https:\/\/ri.itservices.manchester.ac.uk\/htccondor\/wp-content\/uploads\/submit_hello.txt\">submit_hello.txt<\/a><\/tt> files demonstrate the most simple example of running a Matlab job on HTCondor using Matlab 2013a.<\/p>\n<h2>Points To Note<\/h2>\n<ol>\n<li>The <strong>Requirements<\/strong> line in the submit file specifies that the job be run on a Condor node that supports Matlab 2013a by requesting the ClassAd <tt>HAS_MATLAB_2013<\/tt>.<\/li>\n<li>The Matlab script does not use checkpointing and so there is no benefit in copying intermediate results files back to the HTCondor submit node if our job is evicted. Hence we specify that <tt>WhenToTransferOutput<\/tt> files should only happen when our job successfully completes (<tt>ON_EXIT<\/tt> as opposed to <tt>ON_EXIT_OR_EVICT<\/tt>).<\/li>\n<\/ol>\n<h2>Instructions For Running Sample<\/h2>\n<ol>\n<li><tt>module load matlab\/2013a<\/tt><\/li>\n<li><tt>mcc -R -singleCompThread -m hello.m<\/tt><\/li>\n<li><tt>condor_submit submit_hello.txt<\/tt><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Description These hello.m and submit_hello.txt files demonstrate the most simple example of running a Matlab job on HTCondor using Matlab 2013a. Points To Note The Requirements line in the submit file specifies that the job be run on a Condor node that supports Matlab 2013a by requesting the ClassAd HAS_MATLAB_2013. The Matlab script does not use checkpointing and so there is no benefit in copying intermediate results files back to the HTCondor submit node if.. <a href=\"https:\/\/ri.itservices.manchester.ac.uk\/htccondor\/software\/hello-world\/\">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-350","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/htccondor\/wp-json\/wp\/v2\/pages\/350","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=350"}],"version-history":[{"count":5,"href":"https:\/\/ri.itservices.manchester.ac.uk\/htccondor\/wp-json\/wp\/v2\/pages\/350\/revisions"}],"predecessor-version":[{"id":1248,"href":"https:\/\/ri.itservices.manchester.ac.uk\/htccondor\/wp-json\/wp\/v2\/pages\/350\/revisions\/1248"}],"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=350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}