{"id":412,"date":"2018-02-19T10:20:53","date_gmt":"2018-02-19T10:20:53","guid":{"rendered":"http:\/\/ri.itservices.manchester.ac.uk\/htccondor\/?page_id=412"},"modified":"2025-02-21T12:02:02","modified_gmt":"2025-02-21T12:02:02","slug":"gcc-compiler-suite","status":"publish","type":"page","link":"https:\/\/ri.itservices.manchester.ac.uk\/htccondor\/software\/gcc-compiler-suite\/","title":{"rendered":"GNU compiler suite"},"content":{"rendered":"<div class=\"entrytext\">\n<h2><span id=\"Overview\">Overview<\/span><\/h2>\n<p>The installed GNU compiler suite provides a C, C++ and Fortran compiler.<\/p>\n<h2>Restrictions on use\/License information<\/h2>\n<p>The GNU compiler suite is released under the <a href=\"https:\/\/www.gnu.org\/licenses\/gpl-3.0.en.html\">GNU GPLv3+<\/a> license and <a href=\"https:\/\/www.gnu.org\/licenses\/old-licenses\/gpl-2.0.en.html\">GNU GPLv2+<\/a> licenses with exceptions.<\/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 border=\"1\" align=\"center\">\n<tbody>\n<tr>\n<th align=\"center\">GCC compiler version<\/th>\n<th align=\"center\">HTCondor ClassAd<\/th>\n<\/tr>\n<tr>\n<td align=\"center\">4.8.3<\/td>\n<td align=\"center\">HAS_STANDARD_IMAGE<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">4.9.4<\/td>\n<td align=\"center\">HAS_GCC_4_9<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">5.5.0<\/td>\n<td align=\"center\">HAS_GCC_5_5<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">6.4.0<\/td>\n<td align=\"center\">HAS_GCC_6_4<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">7.5.0<\/td>\n<td align=\"center\">HAS_GCC_7_5_0<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">8.4.0<\/td>\n<td align=\"center\">HAS_GCC_8_4_0<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">9.3.0<\/td>\n<td align=\"center\">HAS_GCC_9_3_0<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">10.1.0<\/td>\n<td align=\"center\">HAS_GCC_10_1_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>The GCC compiler suite version 4.8.3 is part of the standard linux installation. To enable other versions of the GCC compiler suite, you must first run the command:<\/p>\n<pre>module load gcc\/&lt;GCC compiler version&gt;\r\n<\/pre>\n<h2><span id=\"Running_the_application\">Running the application<\/span><\/h2>\n<p>Running programs compiled using the GCC compiler suite is simply a matter of submitting the job file with a suitable submit file.<\/p>\n<pre>Universe = 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 = gnu.log\r\nOutput = gnu.out\r\nError = gnu.error\r\nNotification = Error\r\n\r\nShould_Transfer_Files = Yes\r\nWhen_To_Transfer_Output = On_Exit\r\n\r\nExecutable = &lt;gnu_executable&gt;\r\nTransfer_Executable = True\r\nTransfer_Input_Files = &lt;optional input files&gt;\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 GNU compiler suite HTCondor jobs<\/h2>\n<ol>\n<li><a href=\"https:\/\/ri.itservices.manchester.ac.uk\/htccondor\/software\/GCC_hello_world\/\">C++ code for printing &#8220;Hello World&#8221;, the current working directory and the GNU compiler version<\/a>.<\/li>\n<li>C, C++ and Fortran codes for calculating Pi using <em>n<\/em> terms of the Gregory series.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Overview The installed GNU compiler suite provides a C, C++ and Fortran compiler. Restrictions on use\/License information The GNU compiler suite is released under the GNU GPLv3+ license and GNU GPLv2+ licenses with exceptions. There is no restriction on the number of simultaneously running programs on HTCondor. Versions installed GCC compiler version HTCondor ClassAd 4.8.3 HAS_STANDARD_IMAGE 4.9.4 HAS_GCC_4_9 5.5.0 HAS_GCC_5_5 6.4.0 HAS_GCC_6_4 7.5.0 HAS_GCC_7_5_0 8.4.0 HAS_GCC_8_4_0 9.3.0 HAS_GCC_9_3_0 10.1.0 HAS_GCC_10_1_0 Set up procedure on submit.. <a href=\"https:\/\/ri.itservices.manchester.ac.uk\/htccondor\/software\/gcc-compiler-suite\/\">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-412","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/htccondor\/wp-json\/wp\/v2\/pages\/412","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=412"}],"version-history":[{"count":16,"href":"https:\/\/ri.itservices.manchester.ac.uk\/htccondor\/wp-json\/wp\/v2\/pages\/412\/revisions"}],"predecessor-version":[{"id":1235,"href":"https:\/\/ri.itservices.manchester.ac.uk\/htccondor\/wp-json\/wp\/v2\/pages\/412\/revisions\/1235"}],"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=412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}