High Throughput Computing using Condor

GCC compiler suite


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.9.4 HAS_GCC_4_9
5.5.0 HAS_GCC_5_5
6.4.0 HAS_GCC_6_4

Set up procedure on submit node

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:

module load gcc/<GCC compiler version>

Running the application

Running programs compiled using the GCC compiler suite is simply a matter of submitting the job file with a suitable submit file.

Universe = vanilla

Requirements = (Target.Opsys == "LINUX" && Target.Arch == "X86_64" && <HTCondor ClassAd>=?=True)
Request_Memory = 1000

Log = gnu.log
Output = gnu.out
Error = gnu.error
Notification = Error

Should_Transfer_Files = Yes
When_To_Transfer_Output = ON_EXIT

Executable = <gnu_executable>
Transfer_Executable = True
Transfer_Input_Files = <optional input files>


If your submit file is called submit.txt then your job can be submitted to HTCondor using the command condor_submit submit.txt.

Sample GNU compiler suite HTCondor jobs

  1. C++ code for printing “Hello World”, the current working directory and the GNU compiler version.
  2. C, C++ and Fortran codes for calculating Pi using n terms of the Gregory series.

Last modified on February 19, 2018 at 3:24 pm by Chris Paul