GCC compiler suite
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 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> Queue
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
- C++ code for printing “Hello World”, the current working directory and the GNU compiler version.
- C, C++ and Fortran codes for calculating Pi using n terms of the Gregory series.